71e0ae2433
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 |
||
---|---|---|
.. | ||
samples | ||
aggregates.inc | ||
allocation_candidates.inc | ||
allocations.inc | ||
conf.py | ||
index.rst | ||
inventories.inc | ||
inventory.inc | ||
parameters.yaml | ||
request-ids.inc | ||
resource_class.inc | ||
resource_classes.inc | ||
resource_provider_allocations.inc | ||
resource_provider_traits.inc | ||
resource_provider_usages.inc | ||
resource_provider.inc | ||
resource_providers.inc | ||
root.inc | ||
traits.inc | ||
usages.inc |