defaults:
request_headers:
x-auth-token: $ENVIRON['TOKEN']
accept: application/json
content-type: application/json
verbose: true
tests:
- name: make an rp
POST: /resource_providers
data:
name: myrp9
status: 201
- name: get rp
GET: $LOCATION
- name: add some inventory
POST: /resource_providers/$RESPONSE['$.uuid']/inventories
data:
resource_class: DISK_GB
total: 1024
status: 201
- name: get inventory
GET: $LOCATION
- name: update inventory
PUT: $LAST_URL
data:
total: 2048
reserved: 256
resource_provider_generation: 1
- name: get inventory
GET: $LOCATION
- name: list resource providers
GET: /resource_providers
- name: get usages
GET: /resource_providers/$RESPONSE['$.resource_providers[-1].uuid']/usages
- name: list resource providers
GET: /resource_providers
- name: get inventories
GET: /resource_providers/$RESPONSE['$.resource_providers[0].uuid']/inventories