commit 10f8a9aa127cfaecab368e26c3b896e203e301bc
Author: Chris Dent <email address hidden>
Date: Wed Aug 30 20:30:19 2017 +0100
[placement] Require at least one resource class in allocation
If an allocation was made with an empty resources object, a 500 response
code would result. This change adjusts the schema to use minProperties
of 1 to say there must be at least one resource class and value pair in
the allocation. If there is not a 400 response is returned.
As this is fixing 500 response to a useful error, no microversion is
required. A previous gabbi file which demonstrated the problem has been
updated to demonstrate that the problem has been fixed.
Reviewed: https:/ /review. openstack. org/499270 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=10f8a9aa127 cfaecab368e26c3 b896e203e301bc
Committed: https:/
Submitter: Jenkins
Branch: master
commit 10f8a9aa127cfae cab368e26c3b896 e203e301bc
Author: Chris Dent <email address hidden>
Date: Wed Aug 30 20:30:19 2017 +0100
[placement] Require at least one resource class in allocation
If an allocation was made with an empty resources object, a 500 response
code would result. This change adjusts the schema to use minProperties
of 1 to say there must be at least one resource class and value pair in
the allocation. If there is not a 400 response is returned.
As this is fixing 500 response to a useful error, no microversion is
required. A previous gabbi file which demonstrated the problem has been
updated to demonstrate that the problem has been fixed.
Change-Id: I7d9c64c7758656 4fb3bdbe92c693b d2a1bc06f24
Closes-Bug: #1714072