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

defaults:
  request_headers:
    X-Auth-Token: $ENVIRON['OS_TOKEN']

tests:
- name: stack list
  GET: /stacks
  status: 200
  response_headers:
    content-type: application/json

- 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

Remove encoding for application/json in response
Remove encoding for application/json in response

Change-Id: I33c5118035bc69ed810e9498bf1aaf5f7488ef17
Closes-Bug: #1677446
