nova/nova/tests/functional/api/openstack/placement/gabbits
Chris Dent 885ad10edc [placement] add name to resource provider create error
When a resource provider is created an ObjectActionError can
happen. The API handler for POST /resource_provider catches
this and sends out an error response. Prior to this change the
response only identified the resource provider by uuid. Since
it is possible to create a resource provider by only providing
a name, this error response may not be super useful.

This change adds the name of the proposed resource provider to
the message, to make sure things are clear.

However, it's worth noting that at the current time most
situations which would cause an ObjectActionError are not
possible from the API code path: they are caught by the
JSONSchema validation. The one clear path that is not caught,
and thus is the place where a validation of the response has
been done in a gabbit, is when a resource provider tries to
set its parent uuid to its own uuid. In order for the caller
to do this, the caller has to know its own uuid, so the
ambiguity problem is moot.

As we might make additional changes in the future, adding
the name seems the most flexible thing to do, so here it
is.

Change-Id: I7fee5344fc7cb2e4ba3f46e192ba0122edeb0605
Closes-Bug: #1735405
2017-12-08 15:28:15 +00:00
..
aggregate.yaml Placement api: set custom json_error_formatter in aggregate and usage 2017-02-13 18:34:10 +00:00
allocation-bad-class.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00
allocation-candidates.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00: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] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00
allocations-bug-1714072.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00
allocations-post.yaml [placement] POST /allocations to set allocations for >1 consumers 2017-11-28 12:15:53 +00:00
allocations.yaml Merge "[placement] Clean up TODOs in allocations.yaml gabbit" 2017-11-28 19:09:07 +00:00
basic-http.yaml [placement] Allow PUT and POST without bodies 2017-04-06 10:45:06 +00: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 Add initial framing of placement API 2016-07-29 10:31:36 +00:00
cors.yaml Add rudimentary CORS support to placement API 2017-01-16 12:04:24 +00:00
inventory.yaml [placement] Increase test coverage 2017-06-12 14:07:32 +00: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 placement: adds REST API for nested providers 2017-12-06 10:48:09 -06: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.yaml [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
resource-provider-aggregates.yaml fix typos 2017-04-19 03:36:04 -07: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-resources-query.yaml [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
resource-provider.yaml [placement] add name to resource provider create error 2017-12-08 15:28:15 +00:00
shared-resources.yaml [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
traits.yaml [placement] set accept to application/json if accept not set 2017-11-07 15:25:31 +11:00
unicode.yaml Remove invalid URL in gabbi tests 2017-01-17 21:10:45 +00:00
usage.yaml placement: Add GET /usages to placement API 2017-06-15 18:23:37 +00:00
with-allocations.yaml [placement] Symmetric GET and PUT /allocations/{consumer_uuid} 2017-11-21 19:39:59 +00:00