blob: 30280183f98ce84700e17a16aee25ce7cd71e560 [file] [log] [blame]
defaults:
request_headers:
X-Auth-Token: $ENVIRON['OS_TOKEN']
tests:
- name: stack list
GET: /stacks
status: 200
response_headers:
content-type: application/json; charset=UTF-8
- name: create empty stack
POST: /stacks
request_headers:
content-type: application/json
data:
files: {}
disable_rollback: true
parameters: {}
stack_name: $ENVIRON['PREFIX']-empty
environment: {}
template:
heat_template_version: '2016-04-08'
status: 201
response_headers:
location: //stacks/$ENVIRON['PREFIX']-empty/[a-f0-9-]+/
- name: poll for empty CREATE_COMPLETE
GET: $LOCATION
redirects: True
poll:
count: 5
delay: 1.0
response_json_paths:
$.stack.stack_status: CREATE_COMPLETE
- name: show empty stack
GET: $LAST_URL
redirects: True
status: 200
- name: delete empty stack
DELETE: $LAST_URL
redirects: True
status: 204