[TF] Skip unsopported l7policies
Related-PROD: PRODX-9240
Change-Id: I0fc76f3c60639e70c2072138b14977b396bfb497
diff --git a/octavia_tempest_plugin/tests/api/v2/test_l7policy.py b/octavia_tempest_plugin/tests/api/v2/test_l7policy.py
index b1bccc2..a6d2a7c 100644
--- a/octavia_tempest_plugin/tests/api/v2/test_l7policy.py
+++ b/octavia_tempest_plugin/tests/api/v2/test_l7policy.py
@@ -34,6 +34,8 @@
@classmethod
def skip_checks(cls):
super(L7PolicyAPITest, cls).skip_checks()
+ if CONF.load_balancer.provider == 'tungstenfabric':
+ raise cls.skipException('Not supported by TungstenFabric.')
if not CONF.loadbalancer_feature_enabled.l7_protocol_enabled:
raise cls.skipException(
'[loadbalancer-feature-enabled] '
diff --git a/octavia_tempest_plugin/tests/api/v2/test_l7rule.py b/octavia_tempest_plugin/tests/api/v2/test_l7rule.py
index aaad8a0..9fbdad9 100644
--- a/octavia_tempest_plugin/tests/api/v2/test_l7rule.py
+++ b/octavia_tempest_plugin/tests/api/v2/test_l7rule.py
@@ -33,6 +33,8 @@
@classmethod
def skip_checks(cls):
super(L7RuleAPITest, cls).skip_checks()
+ if CONF.load_balancer.provider == 'tungstenfabric':
+ raise cls.skipException('Not supported by TungstenFabric.')
if not CONF.loadbalancer_feature_enabled.l7_protocol_enabled:
raise cls.skipException(
'[loadbalancer-feature-enabled] '
diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_l7policy.py b/octavia_tempest_plugin/tests/scenario/v2/test_l7policy.py
index 46ce984..63224a4 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_l7policy.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_l7policy.py
@@ -31,6 +31,8 @@
@classmethod
def skip_checks(cls):
super(L7PolicyScenarioTest, cls).skip_checks()
+ if CONF.load_balancer.provider == 'tungstenfabric':
+ raise cls.skipException('Not supported by TungstenFabric.')
if not CONF.loadbalancer_feature_enabled.l7_protocol_enabled:
raise cls.skipException(
'[loadbalancer-feature-enabled] '
diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py b/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py
index 0d49d67..1e3cc9d 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py
@@ -470,6 +470,8 @@
self._test_healthmonitor_traffic(const.UDP, 8080)
+ @testtools.skipIf(CONF.load_balancer.provider == 'tungstenfabric',
+ "Not supported by TungstenFabric")
@testtools.skipUnless(
CONF.loadbalancer_feature_enabled.l7_protocol_enabled,
'L7 protocol testing is disabled')