[OVN] Check pool's operating status is online
Pool status will be set to Online after a member is added to it
or when it is created with listener.
Related-PRODX: PRODX-25229
Change-Id: I31d0a115b46c4313c955fddd639bc8821e9ae901
diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_pool.py b/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
index 3838fdf..29bb799 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
@@ -166,7 +166,9 @@
parser.parse(pool[const.CREATED_AT])
parser.parse(pool[const.UPDATED_AT])
UUID(pool[const.ID])
- if CONF.load_balancer.provider == 'tungstenfabric':
+ provider = CONF.load_balancer.provider
+ if (provider == 'tungstenfabric' or
+ (provider == 'ovn' and listener_protocol is not None)):
# 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])