Steve Baker | 60bd2e0 | 2016-07-27 22:57:31 +0000 | [diff] [blame] | 1 | defaults: |
| 2 | request_headers: |
| 3 | X-Auth-Token: $ENVIRON['OS_TOKEN'] |
| 4 | |
| 5 | tests: |
| 6 | - name: stack list |
| 7 | GET: /stacks |
| 8 | status: 200 |
| 9 | response_headers: |
| 10 | content-type: application/json; charset=UTF-8 |
| 11 | |
| 12 | - name: create empty stack |
| 13 | POST: /stacks |
| 14 | request_headers: |
| 15 | content-type: application/json |
| 16 | data: |
| 17 | files: {} |
| 18 | disable_rollback: true |
| 19 | parameters: {} |
| 20 | stack_name: $ENVIRON['PREFIX']-empty |
| 21 | environment: {} |
| 22 | template: |
| 23 | heat_template_version: '2016-04-08' |
| 24 | |
| 25 | status: 201 |
| 26 | response_headers: |
| 27 | location: //stacks/$ENVIRON['PREFIX']-empty/[a-f0-9-]+/ |
| 28 | |
| 29 | |
| 30 | - name: poll for empty CREATE_COMPLETE |
| 31 | GET: $LOCATION |
| 32 | redirects: True |
| 33 | poll: |
| 34 | count: 5 |
| 35 | delay: 1.0 |
| 36 | response_json_paths: |
| 37 | $.stack.stack_status: CREATE_COMPLETE |
| 38 | |
| 39 | - name: show empty stack |
| 40 | GET: $LAST_URL |
| 41 | redirects: True |
| 42 | status: 200 |
| 43 | |
| 44 | - name: delete empty stack |
| 45 | DELETE: $LAST_URL |
| 46 | redirects: True |
| 47 | status: 204 |