[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:
Chris Dent 2017-07-06 17:04:51 +00:00 committed by Matt Riedemann
parent e2d0442b5e
commit 5da190ff12
1 changed files with 6 additions and 0 deletions

View File

@ -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