[placement] Improve allocation_candidates coverage
The case where a bad resource class in resources can cause a 400 response was not covered. This adds it; things work as desired. Change-Id: Ieb93889f76070b9ae37c082301488a953106d914
This commit is contained in:
parent
e2d0442b5e
commit
5da190ff12
|
@ -39,6 +39,12 @@ tests:
|
|||
response_strings:
|
||||
- "'resources' is a required property"
|
||||
|
||||
- name: get bad resource class
|
||||
GET: /allocation_candidates?resources=MCPU:99
|
||||
status: 400
|
||||
response_strings:
|
||||
- Invalid resource class in resources parameter
|
||||
|
||||
- name: get allocation candidates no allocations yet
|
||||
GET: /allocation_candidates?resources=VCPU:1,MEMORY_MB:1024,DISK_GB:100
|
||||
status: 200
|
||||
|
|
Loading…
Reference in New Issue