From 16b6906d5341cdc0c6d340a2ce6640ffd6d24f2f Mon Sep 17 00:00:00 2001 From: Gregory Thiemonge Date: Sat, 12 Feb 2022 19:01:51 +0100 Subject: [PATCH] Spliting member API tests in 2 classes Split MemberAPITest class into MemberAPITest1 and MemberAPITest2 classes. MemberAPITest contained 240 test funtions and it took 1h45 in the octavia-v2-dsvm-noop-api job to run those functions sequentially. By spliting this class, the load now spread on 2 workers and it reduces the duration of the noop-api jobs, avoiding frequent timeout issues. Change-Id: I2d2cf910bd5801bfeb92c1ede51bd120ced3b4f9 --- octavia_tempest_plugin/tests/api/v2/test_member.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/octavia_tempest_plugin/tests/api/v2/test_member.py b/octavia_tempest_plugin/tests/api/v2/test_member.py index aa7cf254..fee2893f 100644 --- a/octavia_tempest_plugin/tests/api/v2/test_member.py +++ b/octavia_tempest_plugin/tests/api/v2/test_member.py @@ -141,6 +141,8 @@ class MemberAPITest(test_base.LoadBalancerBaseTest): cls.listener_pool_cache[listener_pool_key] = pool[const.ID] return pool[const.ID] + +class MemberAPITest1(MemberAPITest): @decorators.idempotent_id('0684575a-0970-4fa8-8006-10c2b39c5f2b') def test_ipv4_HTTP_LC_alt_monitor_member_create(self): pool_id = self._listener_pool_create( @@ -1375,6 +1377,8 @@ class MemberAPITest(test_base.LoadBalancerBaseTest): self.assertTrue(not any(["" in member[const.TAGS] for member in list_of_members])) + +class MemberAPITest2(MemberAPITest): @decorators.idempotent_id('2674b363-7922-494a-b121-cf415dbbb716') def test_HTTP_LC_alt_monitor_member_show(self): pool_id = self._listener_pool_create(