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

tests:
- name: list resource types
  GET: /resource_types
  status: 200

- name: show resource type
  GET: /resource_types/OS::Heat::TestResource
  status: 200
  response_json_paths:
    $.support_status.status: SUPPORTED
    $.properties.wait_secs.default: 0

- name: resource type template
  GET: /resource_types/OS::Heat::TestResource/template
  query_parameters:
    template_type: hot
  status: 200
  response_json_paths:
    $.resources.TestResource.type: OS::Heat::TestResource
    $.heat_template_version: '2016-10-14'
