Skip stateless SG dualstack tests when openvswitch fw driver is used

Openvswitch firewall driver does not support stateless SG so tests from
classes:
StatelessSecGroupDualStackDHCPv6StatelessTest
StatelessSecGroupDualStackSlaacTest

from the module neutron_tempest_plugin.scenario.test_security_groups
should be skipped in such case.

Closes-bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227138
Change-Id: Ice0f3573dd51851752c745c0b1d35c82bd7808fd
This commit is contained in:
Slawek Kaplonski 2023-08-01 15:51:50 +02:00
parent 9cf35d26c8
commit c1793ca2e8

@ -1137,6 +1137,10 @@ class StatelessNetworkSecGroupIPv4Test(BaseNetworkSecGroupTest):
should_succeed=True)
@testtools.skipIf(
CONF.neutron_plugin_options.firewall_driver in ['openvswitch', 'None'],
"Firewall driver other than 'openvswitch' is required to use "
"stateless security groups.")
class StatelessSecGroupDualStackSlaacTest(BaseNetworkSecGroupTest):
required_extensions = ['security-group', 'stateful-security-group']
stateless_sg = True
@ -1180,6 +1184,10 @@ class StatelessSecGroupDualStackSlaacTest(BaseNetworkSecGroupTest):
self._test_default_sec_grp_scenarios()
@testtools.skipIf(
CONF.neutron_plugin_options.firewall_driver in ['openvswitch', 'None'],
"Firewall driver other than 'openvswitch' is required to use "
"stateless security groups.")
class StatelessSecGroupDualStackDHCPv6StatelessTest(
StatelessSecGroupDualStackSlaacTest):
required_extensions = ['security-group', 'stateful-security-group']