Add a test for granular member_of not flowing down
This is a simple addition to demonstrate that "aggregates flow down" does not apply to granular member_of. It was prompted by [1]. [1] https://review.opendev.org/#/c/662191/5/doc/source/specs/train/approved/2005575-nested-magic-1.rst@302 Change-Id: I141cde0395f45696d78ad73674a276eb6178aa70
This commit is contained in:
parent
9de03e1b17
commit
38d3d5d1c6
|
@ -18,7 +18,7 @@ tests:
|
|||
$.allocation_requests..allocations["$ENVIRON['NUMA1_1_UUID']"].resources.VCPU: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA1_2_UUID']"].resources.VCPU: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA2_1_UUID']"].resources.VCPU: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA2_1_UUID']"].resources.VCPU: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA2_2_UUID']"].resources.VCPU: 1
|
||||
|
||||
- name: get allocation candidates with aggregate A
|
||||
GET: /allocation_candidates?resources=VCPU:1&member_of=$ENVIRON['AGGA_UUID']
|
||||
|
@ -31,6 +31,13 @@ tests:
|
|||
$.allocation_requests..allocations["$ENVIRON['NUMA2_1_UUID']"].resources.VCPU: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA2_2_UUID']"].resources.VCPU: 1
|
||||
|
||||
- name: get allocation candidates with aggregate A granular
|
||||
GET: /allocation_candidates?resources1=VCPU:1&member_of1=$ENVIRON['AGGA_UUID']
|
||||
response_json_paths:
|
||||
# Aggregate A is on the root rps (both cn1 and cn2) so it spans on the
|
||||
# whole tree, but only for the unsuffixed request group.
|
||||
$.allocation_requests.`len`: 0
|
||||
|
||||
- name: get allocation candidates with aggregate B
|
||||
GET: /allocation_candidates?resources=VCPU:1&member_of=$ENVIRON['AGGB_UUID']
|
||||
response_json_paths:
|
||||
|
@ -48,6 +55,13 @@ tests:
|
|||
$.allocation_requests.`len`: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA1_1_UUID']"].resources.VCPU: 1
|
||||
|
||||
- name: get allocation candidates with aggregate C granular
|
||||
GET: /allocation_candidates?resources1=VCPU:1&member_of1=$ENVIRON['AGGC_UUID']
|
||||
response_json_paths:
|
||||
# Aggregate C is only on NUMA1_1.
|
||||
$.allocation_requests.`len`: 1
|
||||
$.allocation_requests..allocations["$ENVIRON['NUMA1_1_UUID']"].resources.VCPU: 1
|
||||
|
||||
- name: get allocation candidates with shared storage
|
||||
GET: /allocation_candidates?resources=VCPU:1,DISK_GB:1000
|
||||
response_json_paths:
|
||||
|
|
Loading…
Reference in New Issue