fix: Rename test classes causing accidental skip
This patch set renames two classes that are neutron plugin
rbac tests but don't end in the appropriate suffix of
"PluginRbacTest" which is used by .zuul.yaml to correctly execute
the tests [0].
This means that, in effect, these tests aren't being run in any
jobs. This patch set resolves the issue.
In a follow up patch set a hacking rule will be added to enforce
correct naming for plugin rbac tests.
[0] 0c7f83ea17/.zuul.yaml (L168)
Change-Id: Ieac5ebf70eefcebf1aebc26da95d58fcd68a202e
This commit is contained in:
parent
2238c69f46
commit
cacbd21125
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue