Update v2.0 API version to CURRENT
The v2.0 API is stable, so we need to communicate this fact to the consumers of Glance. This updates the status of the v2.0 version entity in responses from / and those that result in a 300 Multiple Choices status code from 'EXPERIMENTAL' to 'CURRENT.' Change-Id: I9e4514025904d7be2e947c6d14ccb90b6b066f8c
This commit is contained in:
parent
aaf36cbe29
commit
059c036f60
@ -48,7 +48,7 @@ class Controller(object):
|
||||
version_objs = []
|
||||
if CONF.enable_v2_api:
|
||||
version_objs.append(
|
||||
build_version_object(2.0, 'v2', 'EXPERIMENTAL'))
|
||||
build_version_object(2.0, 'v2', 'CURRENT'))
|
||||
if CONF.enable_v1_api:
|
||||
version_objs.append(
|
||||
build_version_object(1.1, 'v1', 'CURRENT'))
|
||||
|
@ -36,7 +36,7 @@ class TestRootApi(functional.FunctionalTest):
|
||||
versions = {'versions': [
|
||||
{
|
||||
'id': 'v2.0',
|
||||
'status': 'EXPERIMENTAL',
|
||||
'status': 'CURRENT',
|
||||
'links': [{'rel': 'self', 'href': url % '2'}],
|
||||
},
|
||||
{
|
||||
@ -72,7 +72,7 @@ class TestRootApi(functional.FunctionalTest):
|
||||
versions = {'versions': [
|
||||
{
|
||||
'id': 'v2.0',
|
||||
'status': 'EXPERIMENTAL',
|
||||
'status': 'CURRENT',
|
||||
'links': [{'rel': 'self', 'href': url % '2'}],
|
||||
},
|
||||
]}
|
||||
@ -129,7 +129,7 @@ class TestRootApi(functional.FunctionalTest):
|
||||
versions = {'versions': [
|
||||
{
|
||||
'id': 'v2.0',
|
||||
'status': 'EXPERIMENTAL',
|
||||
'status': 'CURRENT',
|
||||
'links': [{'rel': 'self', 'href': url % '2'}],
|
||||
},
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ class VersionsTest(base.IsolatedUnitTest):
|
||||
expected = [
|
||||
{
|
||||
'id': 'v2.0',
|
||||
'status': 'EXPERIMENTAL',
|
||||
'status': 'CURRENT',
|
||||
'links': [{'rel': 'self',
|
||||
'href': 'http://127.0.0.1:9292/v2/'}],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user