fixtures: - AuthenticationFixture defaults: request_headers: accept: application/json content-type: application/json X-Auth-Token: $ENVIRON['OS_TOKEN'] tests: - name: get host name GET: compute/v2.1/os-hypervisors status: 200 - name: post new host with too long extra capability POST: reservation/v1/os-hosts data: name: $HISTORY['get host name'].$RESPONSE['$.hypervisors[0].hypervisor_hostname'] extra_capability_key_should_be_shorter_than_64_ABCDEFGHIJKLMNOPQRSTUVWXYZ: "foo" status: 400 response_strings: - Extra capability key too long - name: post new host POST: reservation/v1/os-hosts data: name: $HISTORY['get host name'].$RESPONSE['$.hypervisors[0].hypervisor_hostname'] status: 201 - name: get new host GET: reservation/v1/os-hosts response_json_paths: $.hosts.`len`: 1 - name: delete new host DELETE: reservation/v1/os-hosts/$HISTORY['get new host'].$RESPONSE['$.hosts[0].id'] status: 204 - name: get no host GET: reservation/v1/os-hosts response_json_paths: $.hosts.`len`: 0