Validation of openstack keystone version status
test_identity_v3_status - this method will verify identity v3 version enable Change-Id: I8f0c51ab4806619e654da6cf79e85030ec636046
This commit is contained in:
parent
e1353a88b7
commit
692dcc19c7
@ -14,12 +14,24 @@
|
||||
# under the License.
|
||||
|
||||
from tempest.api.identity import base
|
||||
from tempest import config
|
||||
from tempest.lib import decorators
|
||||
|
||||
|
||||
CONF = config.CONF
|
||||
|
||||
|
||||
class TestApiDiscovery(base.BaseIdentityV3Test):
|
||||
"""Tests for API discovery features."""
|
||||
|
||||
@decorators.idempotent_id('79aec9ae-710f-4c54-a4fc-3aa25b4feac3')
|
||||
def test_identity_v3_existence(self):
|
||||
versions = self.non_admin_versions_client.list_versions()
|
||||
found = any(
|
||||
"v3" in version.get('id')
|
||||
for version in versions['versions']['values'])
|
||||
self.assertEqual(CONF.identity_feature_enabled.api_v3, found)
|
||||
|
||||
@decorators.idempotent_id('721f480f-35b6-46c7-846e-047e6acea0dc')
|
||||
@decorators.attr(type='smoke')
|
||||
def test_list_api_versions(self):
|
||||
|
Loading…
Reference in New Issue
Block a user