Test for correctly formed but invalid data when creating an Inventory.
This increases the coverage of the inventory handler from gabbi.
Race condition and ConcurrentUpdateDetected scenarios are not
covered as those are hard to cause from a gabbi test.
Change-Id: I603558c08d540aa53918252a0a9a050701456f5a
response_strings:
- Unable to create inventory for resource provider
+- name: post an invalid inventory
+ POST: /resource_providers/$ENVIRON['RP_UUID']/inventories
+ request_headers:
+ content-type: application/json
+ data:
+ resource_class: DISK_GB
+ total: -1
+ status: 400
+ response_strings:
+ - Bad inventory DISK_GB for resource provider $ENVIRON['RP_UUID']
+
- name: post an inventory
POST: /resource_providers/$ENVIRON['RP_UUID']/inventories
request_headers: