nova/nova/tests/functional/api/openstack/placement/gabbits
Chris Dent 0fc4f95914 [placement] disallow additional fields in allocations
Back in microversion 1.12, when the allocations structure was extended
to allow project_id and user_id on PUT /allocations/{uuid},
"additionalProperties" was not set in the JSON schema, so it has been
possible since then to include unused fields in the input. The schema
was then reused in the creation of subsequent schema for new
microversions and for new URIs, such as POST /allocations and the
forthcoming /reshaper.

This change fixes it by fixing the old microversion. This is the "just
fix it" option from the discussion on the associated bug. The other
option is to create a new microversion that corrects the behavior. This
is more complex than it might initially sound because of the way in
which the original schema is used to compose new ones.

Change-Id: Ied464744803864e61a45e03c559760a8a2e2581f
Closes-Bug: #1782340
2018-07-19 10:46:13 +01:00
..
aggregate-policy.yaml Add granular placement policy rules for aggregates 2018-05-25 19:39:55 -04:00
aggregate.yaml placement: Return new provider from POST /rps 2018-03-14 17:08:55 -05:00
allocation-bad-class.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00
allocation-candidates-member-of.yaml support multiple member_of qparams 2018-05-03 09:02:29 -04:00
allocation-candidates-policy.yaml Add granular policy rules for allocation candidates 2018-05-26 12:54:51 -04:00
allocation-candidates.yaml Add microversion for nested allocation candidate 2018-06-29 17:38:10 +09:00
allocations-1-8.yaml [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
allocations-1-12.yaml [placement] disallow additional fields in allocations 2018-07-19 10:46:13 +01:00
allocations-1.28.yaml placement: delete auto-created consumers on fail 2018-07-09 19:05:50 -04:00
allocations-bug-1714072.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00
allocations-bug-1778591.yaml placement: delete auto-created consumers on fail 2018-07-09 19:05:50 -04:00
allocations-bug-1778743.yaml [placement] Fix capacity tracking in POST /allocations 2018-06-27 11:10:52 +01:00
allocations-bug-1779717.yaml update project/user for consumer in allocation 2018-07-10 16:05:38 +00:00
allocations-policy.yaml Add a microversion for consumer generation support 2018-06-20 12:11:09 +01:00
allocations-post.yaml placement: delete auto-created consumers on fail 2018-07-09 19:05:50 -04:00
allocations.yaml Merge "Add UUID validation for consumer_uuid" 2018-07-16 20:03:37 +00:00
basic-http.yaml [placement] cover bad content-length header 2018-07-18 16:00:13 +01:00
bug-1674694.yaml [placement] set accept to application/json if accept not set 2017-11-07 15:25:31 +11:00
confirm-auth.yaml placement: skip authentication on root URI 2017-12-11 17:28:36 +00:00
cors.yaml Add rudimentary CORS support to placement API 2017-01-16 12:04:24 +00:00
ensure-consumer.yaml make incomplete_consumer_project_id a valid UUID 2018-07-09 19:15:46 +01:00
granular.yaml Return all resources in provider_summaries 2018-05-29 03:16:13 +09:00
inventory-policy.yaml Add granular policy rules for resource providers inventories 2018-05-17 11:12:16 -04:00
inventory.yaml [placement] Add gabbi coverage for inv of missing rp 2018-07-18 15:53:55 +01:00
microversion-bug-1724065.yaml [placement] set accept to application/json if accept not set 2017-11-07 15:25:31 +11:00
microversion.yaml Add microversion for nested allocation candidate 2018-06-29 17:38:10 +09:00
non-cors.yaml Add rudimentary CORS support to placement API 2017-01-16 12:04:24 +00:00
resource-class-in-use.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00
resource-classes-1-6.yaml [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
resource-classes-1-7.yaml [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
resource-classes-last-modified.yaml [placement] Add cache headers to placement api requests 2017-12-12 15:51:58 +00:00
resource-classes-policy.yaml Add granular policy rules for /resource_classes* 2018-05-17 11:12:16 -04:00
resource-classes.yaml Add granular policy rules for /resource_classes* 2018-05-17 11:12:16 -04:00
resource-provider-aggregates.yaml support multiple member_of qparams 2018-05-03 09:02:29 -04:00
resource-provider-bug-1779818.yaml Update root providers in same tree 2018-07-10 14:39:44 +00:00
resource-provider-duplication.yaml [placement] Disambiguate resource provider conflict message 2017-06-08 09:57:38 +00:00
resource-provider-links.yaml Include /resource_providers/uuid/allocations link 2017-10-23 14:08:05 -05:00
resource-provider-policy.yaml Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
resource-provider-resources-query.yaml placement: Return new provider from POST /rps 2018-03-14 17:08:55 -05:00
resource-provider.yaml Merge "Resource_provider API handler does not return specific error codes" 2018-07-16 14:52:50 +00:00
shared-resources.yaml placement: Return new provider from POST /rps 2018-03-14 17:08:55 -05:00
traits-policy.yaml Add granular policy rules for traits in placement 2018-05-25 20:46:24 -04:00
traits.yaml [placement] Add functional tests for traits API 2018-02-19 00:41:56 +00:00
unicode.yaml Remove invalid URL in gabbi tests 2017-01-17 21:10:45 +00:00
usage-policy.yaml Add granular policy rules for usages 2018-05-25 11:27:55 -04:00
usage.yaml Merge "Add more functional test for placement.usage" 2018-03-28 15:46:46 +00:00
with-allocations.yaml [placement] Add gabbi coverage for an inventory change 2018-07-18 15:46:03 +01:00