Fixed incorrect names/comments for API version 2.18
Change Id92251243d9e92f30e466419110fce5781304823 added API version 2.18, but because of a lot of rebases some comments and class names has incorrect API version (2.16 and 2.17). It may confuse developers in future. These mistakes must be fixed. Change-Id: I9719e9ddb3393f24976d1b5e4464e759daaa704e
This commit is contained in:
parent
1ab0ee1258
commit
eea7169474
@ -74,7 +74,7 @@ class NoAuthMiddleware(NoAuthMiddlewareBase):
|
||||
return self.base_call(req, True, always_admin=False)
|
||||
|
||||
|
||||
class NoAuthMiddlewareV2_17(NoAuthMiddlewareBase):
|
||||
class NoAuthMiddlewareV2_18(NoAuthMiddlewareBase):
|
||||
"""Return a fake token if one isn't specified.
|
||||
|
||||
This provides a version of the middleware which does not add
|
||||
|
@ -63,5 +63,5 @@ class ApiPasteNoProjectId(ApiPasteV21Fixture):
|
||||
"paste.filter_factory = nova.api.openstack.auth:"
|
||||
"NoAuthMiddleware.factory",
|
||||
"paste.filter_factory = nova.api.openstack.auth:"
|
||||
"NoAuthMiddlewareV2_17.factory")
|
||||
"NoAuthMiddlewareV2_18.factory")
|
||||
target_file.write(line)
|
||||
|
@ -84,7 +84,7 @@ class ApiSampleTestBaseV21(testscenarios.WithScenarios,
|
||||
'_legacy_v2_code': True,
|
||||
'_additional_fixtures': [
|
||||
api_paste_fixture.ApiPasteLegacyV2Fixture]}),
|
||||
# test v2.16 code without project id
|
||||
# test v2.18 code without project id
|
||||
('v2_1_noproject_id', {
|
||||
'api_major_version': 'v2.1',
|
||||
'_project_id': False,
|
||||
|
@ -35,7 +35,7 @@ class TestNoAuthMiddleware(testscenarios.WithScenarios, test.NoDBTestCase):
|
||||
'auth_middleware': auth.NoAuthMiddleware}),
|
||||
('no_project_id', {
|
||||
'expected_url': 'http://localhost/v2.1',
|
||||
'auth_middleware': auth.NoAuthMiddlewareV2_17}),
|
||||
'auth_middleware': auth.NoAuthMiddlewareV2_18}),
|
||||
]
|
||||
|
||||
def setUp(self):
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
features:
|
||||
|
||||
- Provides API 2.17, which makes the use of project_ids in API urls
|
||||
- Provides API 2.18, which makes the use of project_ids in API urls
|
||||
optional.
|
||||
|
||||
upgrade:
|
||||
|
Loading…
x
Reference in New Issue
Block a user