41 lines
869 B
YAML
41 lines
869 B
YAML
|
|
fixtures:
|
|
- APIFixture
|
|
|
|
defaults:
|
|
request_headers:
|
|
accept: application/json
|
|
x-auth-token: admin
|
|
|
|
tests:
|
|
|
|
- name: get an encoded snowman
|
|
desc: this should fall through to a NotFound on the resource provider object
|
|
GET: /resources_providers/%e2%98%83
|
|
status: 404
|
|
|
|
- name: post resource provider with snowman
|
|
POST: /resource_providers
|
|
request_headers:
|
|
content-type: application/json
|
|
data:
|
|
name: ☃
|
|
uuid: $ENVIRON['RP_UUID']
|
|
status: 201
|
|
response_headers:
|
|
location: //resource_providers/[a-f0-9-]+/
|
|
|
|
- name: get that resource provider
|
|
GET: $LOCATION
|
|
response_json_paths:
|
|
$.name: ☃
|
|
|
|
- name: query by name
|
|
GET: /resource_providers?name=%e2%98%83
|
|
response_json_paths:
|
|
$.resource_providers[0].name: ☃
|
|
|
|
- name: delete that one
|
|
DELETE: /resource_providers/$ENVIRON['RP_UUID']
|
|
status: 204
|