Merge "Test for multiple limit/group_policy qparams"
This commit is contained in:
commit
01246b0183
|
@ -181,6 +181,14 @@ tests:
|
|||
response_json_paths:
|
||||
$.allocation_requests.`len`: 1
|
||||
|
||||
- name: get allocation candidates with multiple limits picks the first one
|
||||
GET: /allocation_candidates?resources=VCPU:1,MEMORY_MB:1024,DISK_GB:100&limit=10&limit=1
|
||||
status: 200
|
||||
request_headers:
|
||||
openstack-api-version: placement 1.16
|
||||
response_json_paths:
|
||||
$.allocation_requests.`len`: 5
|
||||
|
||||
- name: get allocation candidates with required traits in old version
|
||||
GET: /allocation_candidates?resources=VCPU:1,MEMORY_MB:1024,DISK_GB:100&required=HW_CPU_X86_SSE
|
||||
status: 400
|
||||
|
|
|
@ -81,6 +81,14 @@ tests:
|
|||
$.allocation_requests.`len`: 0
|
||||
$.provider_summaries.`len`: 0
|
||||
|
||||
- name: multiple group_policy picks the first one
|
||||
# NOTE(efried): gabbi query_parameters doesn't preserve param order
|
||||
GET: /allocation_candidates?resources1=VCPU:1&resources2=MEMORY_MB:1024&group_policy=isolate&group_policy=none
|
||||
status: 200
|
||||
response_json_paths:
|
||||
$.allocation_requests.`len`: 0
|
||||
$.provider_summaries.`len`: 0
|
||||
|
||||
- name: resources combine
|
||||
GET: /allocation_candidates
|
||||
query_parameters:
|
||||
|
|
Loading…
Reference in New Issue