Skip to content

Commit 12f8c77

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[placement] Add gabbi coverage for an inventory change"
2 parents c54428c + 32034a9 commit 12f8c77

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

nova/tests/functional/api/openstack/placement/gabbits/with-allocations.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ tests:
6868
response_json_paths:
6969
$.errors[0].code: placement.inventory.inuse
7070

71+
# We can change inventory in a way that makes existing allocations exceed the
72+
# new capacity. This is allowed.
73+
- name: change inventory despite capacity exceeded
74+
PUT: /resource_providers/$ENVIRON['RP_UUID']/inventories
75+
request_headers:
76+
accept: application/json
77+
content-type: application/json
78+
data:
79+
resource_provider_generation: 5
80+
inventories:
81+
DISK_GB:
82+
total: 1019
83+
VCPU:
84+
total: 97
85+
status: 200
86+
7187
- name: get total usages by project
7288
GET: /usages?project_id=$ENVIRON['PROJECT_ID']
7389
request_headers:

0 commit comments

Comments
 (0)