api tests: Check correct extensions

auto_allocate -> auto-allocated-topology
rbac_policies -> rbac-policies

Closes-Bug: #1561858

(cherry picked from commit 9d3bab6b8d)
Change-Id: Ied13e52bf78afe571f7243e93005bf5c68fe44db
This commit is contained in:
YAMAMOTO Takashi 2016-03-25 15:25:39 +09:00 committed by Armando Migliaccio
parent 439740e92c
commit bec65f6cdd
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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):