Merge "fix: Rename test classes causing accidental skip"

This commit is contained in:
Zuul 2018-10-31 23:38:09 +00:00 committed by Gerrit Code Review
commit 7267fa45d9
2 changed files with 6 additions and 6 deletions

View File

@ -23,18 +23,18 @@ from patrole_tempest_plugin import rbac_rule_validation
from patrole_tempest_plugin.tests.api.network import rbac_base as base
class AddressScopeRbacTest(base.BaseNetworkPluginRbacTest):
class AddressScopePluginRbacTest(base.BaseNetworkPluginRbacTest):
@classmethod
def skip_checks(cls):
super(AddressScopeRbacTest, cls).skip_checks()
super(AddressScopePluginRbacTest, cls).skip_checks()
if not utils.is_extension_enabled('address-scope', 'network'):
msg = "address-scope extension not enabled."
raise cls.skipException(msg)
@classmethod
def resource_setup(cls):
super(AddressScopeRbacTest, cls).resource_setup()
super(AddressScopePluginRbacTest, cls).resource_setup()
cls.network = cls.create_network()
def _create_address_scope(self, name=None, **kwargs):

View File

@ -22,18 +22,18 @@ from patrole_tempest_plugin import rbac_rule_validation
from patrole_tempest_plugin.tests.api.network import rbac_base as base
class QosRbacTest(base.BaseNetworkPluginRbacTest):
class QosPluginRbacTest(base.BaseNetworkPluginRbacTest):
@classmethod
def skip_checks(cls):
super(QosRbacTest, cls).skip_checks()
super(QosPluginRbacTest, cls).skip_checks()
if not utils.is_extension_enabled('qos', 'network'):
msg = "qos extension not enabled."
raise cls.skipException(msg)
@classmethod
def resource_setup(cls):
super(QosRbacTest, cls).resource_setup()
super(QosPluginRbacTest, cls).resource_setup()
cls.network = cls.create_network()
def create_policy(self, name=None):