8aa87b348c
GET /resources_providers/{uuid}/usages returns a dictionary of resource usage by resource class. Change-Id: I3ad0d16594301635966bd9e9352bc3f1f29dab14 Partially-Implements: blueprint generic-resource-pools
26 lines
628 B
YAML
26 lines
628 B
YAML
|
|
fixtures:
|
|
- AllocationFixture
|
|
|
|
defaults:
|
|
request_headers:
|
|
x-auth-token: admin
|
|
|
|
tests:
|
|
|
|
- name: confirm inventories
|
|
GET: /resource_providers/$ENVIRON['RP_UUID']/inventories
|
|
response_json_paths:
|
|
$.inventories.DISK_GB.total: 2048
|
|
$.inventories.DISK_GB.reserved: 0
|
|
|
|
- name: get usages
|
|
GET: /resource_providers/$ENVIRON['RP_UUID']/usages
|
|
response_headers:
|
|
# use a regex here because charset, which is not only not
|
|
# required but superfluous, is present
|
|
content-type: /application/json/
|
|
response_json_paths:
|
|
$.resource_provider_generation: 1
|
|
$.usages.DISK_GB: 1024
|