Merge "api tests: Check correct extensions"
This commit is contained in:
commit
4f4a40689d
|
@ -25,8 +25,8 @@ class ExternalNetworksRBACTestJSON(base.BaseAdminNetworkTest):
|
|||
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
if not test.is_extension_enabled('rbac_policies', 'network'):
|
||||
msg = "rbac extension not enabled."
|
||||
if not test.is_extension_enabled('rbac-policies', 'network'):
|
||||
msg = "rbac-policies extension not enabled."
|
||||
raise cls.skipException(msg)
|
||||
super(ExternalNetworksRBACTestJSON, cls).resource_setup()
|
||||
cls.client2 = cls.alt_manager.network_client
|
||||
|
|
|
@ -181,8 +181,8 @@ class RBACSharedNetworksTest(base.BaseAdminNetworkTest):
|
|||
@classmethod
|
||||
def resource_setup(cls):
|
||||
super(RBACSharedNetworksTest, cls).resource_setup()
|
||||
if not test.is_extension_enabled('rbac_policies', 'network'):
|
||||
msg = "rbac extension not enabled."
|
||||
if not test.is_extension_enabled('rbac-policies', 'network'):
|
||||
msg = "rbac-policies extension not enabled."
|
||||
raise cls.skipException(msg)
|
||||
cls.client2 = cls.alt_manager.network_client
|
||||
|
||||
|
|
|
@ -32,8 +32,9 @@ class TestAutoAllocatedTopology(base.BaseAdminNetworkTest):
|
|||
def skip_checks(cls):
|
||||
super(TestAutoAllocatedTopology, cls).skip_checks()
|
||||
|
||||
if not test.is_extension_enabled('auto_allocate', 'network'):
|
||||
raise cls.skipException("auto_allocate extension not enabled")
|
||||
if not test.is_extension_enabled('auto-allocated-topology', 'network'):
|
||||
raise cls.skipException("auto-allocated-topology extension not "
|
||||
"enabled")
|
||||
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
|
|
Loading…
Reference in New Issue