nova/nova/tests/functional/api/openstack/placement/gabbits
Chris Dent 1a5a3a9bc8 [placement] Add status and links fields to version document at /
According to the spec [1] the version discovery doc must have a status
and links for each version. For the primary version the status value
should be 'CURRENT'. For placement the version discovery doc and "self"
are the same thing, so the provided "self" href looks redundant, but it
makes keystoneauth1 happy when doing version discovery.

In placement, since there is only one version at the moment, set status
to CURRENT.

Add a gabbi test that verifies the presence of both fields and values.

Without these fields, use of placement with a client that follows the
documented version discovery process will fail to work.

As the version doc is not considered microversioned[2] and in any case
this is making version discovery work where it didn't before, this is
not a candidate for a microversion and can be backported to the
beginning of placement's history if we like.

I've updated the api-ref docs. In the process I made the max
microversion in the sample discovery doc a bit more realistic and
in alignment with these modern times.

[1] http://specs.openstack.org/openstack/api-wg/guidelines/microversion_specification.html#version-discovery
[2] http://eavesdrop.openstack.org/irclogs/%23openstack-sdks/%23openstack-sdks.2018-06-13.log.html#t2018-06-13T13:40:12

Change-Id: Ie602ab1768efbf103563d8f6b9d28965fc81021a
Closes-Bug: #1776668
2018-06-14 14:32:07 +00: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 Return all resources in provider_summaries 2018-05-29 03:16:13 +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] 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-policy.yaml Add granular policy rules for placement allocations 2018-05-26 12:47:32 -04:00
allocations-post.yaml [placement] POST /allocations to set allocations for >1 consumers 2017-11-28 12:15:53 +00:00
allocations.yaml [placement] Add cache headers to placement api requests 2017-12-12 15:51:58 +00:00
basic-http.yaml [placement] default to accept of application/json when */* 2018-05-15 16:55:42 +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 placement: always create consumer records 2018-06-11 12:45:41 -04: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: allow to set reserved value equal to total for inventory 2018-05-18 23:04:27 +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] Add status and links fields to version document at / 2018-06-14 14:32:07 +00: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-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 Implement granular policy rules for placement 2018-05-17 11:12:16 -04: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 Add INVENTORY_INUSE to DELETE /rp/{u}/inventories 2018-05-15 07:52:45 -05:00