[TF] Fix PoolScenario tests
Related-PROD: PRODX-11372
Change-Id: Ib54d689e3dfed4b93fa22e08e34edfd44b4c8f05
(cherry picked from commit 567369890911ef97e9c88d5482eaf0164632ec11)
(cherry picked from commit 38b0a6265e56ee4492e3c5374afd5aaa84ab516c)
(cherry picked from commit 61889826c10d79bfe467da0e9dcdbcd5cf132a5b)
diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_pool.py b/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
index d3959e7..07394cf 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
@@ -448,6 +448,12 @@
parser.parse(pool[const.CREATED_AT])
parser.parse(pool[const.UPDATED_AT])
UUID(pool[const.ID])
+ if CONF.load_balancer.provider == 'tungstenfabric':
+ # Operating status for a pool without members will be ONLINE if
+ # it is attached to a listener
+ self.assertEqual(const.ONLINE, pool[const.OPERATING_STATUS])
+ else:
+ self.assertEqual(const.OFFLINE, pool[const.OPERATING_STATUS])
self.assertEqual(pool_protocol, pool[const.PROTOCOL])
self.assertEqual(1, len(pool[const.LOADBALANCERS]))
self.assertEqual(self.lb_id, pool[const.LOADBALANCERS][0][const.ID])
diff --git a/octavia_tempest_plugin/tests/test_base.py b/octavia_tempest_plugin/tests/test_base.py
index a4e28b0..dde9ba9 100644
--- a/octavia_tempest_plugin/tests/test_base.py
+++ b/octavia_tempest_plugin/tests/test_base.py
@@ -596,7 +596,7 @@
@classmethod
def check_tf_compatibility(cls, protocol=None, algorithm=None):
# TungstenFabric supported protocols and algorithms
- tf_protocols = [const.HTTP, const.HTTPS, const.TCP, const.UDP,
+ tf_protocols = [const.HTTP, const.HTTPS, const.TCP,
const.TERMINATED_HTTPS]
tf_algorithms = [const.LB_ALGORITHM_ROUND_ROBIN,
const.LB_ALGORITHM_LEAST_CONNECTIONS,