Set one second delay between requests for LC tests
Rise up the delay between requests to make sure both members got the
same number of responses with LC (leastconn) algorithm to avoid the
cases when an instance is slow or overloaded and requests become longer.
Closes-Bug: PRODX-31370
Change-Id: I94c8ad7a240f17c98d564e254becfe4374c73c3d
(cherry picked from commit 6d15a74c98a3f19d1898457e4c379cf49a98652b)
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 a704b88..0adaf4b 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py
@@ -1115,17 +1115,17 @@
@decorators.idempotent_id('04399db0-04f0-4cb5-bb27-a12bf18bfe08')
def test_http_LC_listener_with_allowed_cidrs(self):
self._test_listener_with_allowed_cidrs(
- const.HTTP, 90, const.LB_ALGORITHM_LEAST_CONNECTIONS)
+ const.HTTP, 90, const.LB_ALGORITHM_LEAST_CONNECTIONS, delay=1)
@decorators.idempotent_id('3d8d95b6-55e8-4bb9-b474-4ac35abaff22')
def test_tcp_LC_listener_with_allowed_cidrs(self):
self._test_listener_with_allowed_cidrs(
- const.TCP, 91, const.LB_ALGORITHM_LEAST_CONNECTIONS, delay=0.2)
+ const.TCP, 91, const.LB_ALGORITHM_LEAST_CONNECTIONS, delay=1)
@decorators.idempotent_id('7456b558-9add-4e0e-988e-06803f8047f7')
def test_udp_LC_listener_with_allowed_cidrs(self):
self._test_listener_with_allowed_cidrs(
- const.UDP, 92, const.LB_ALGORITHM_LEAST_CONNECTIONS)
+ const.UDP, 92, const.LB_ALGORITHM_LEAST_CONNECTIONS, delay=1)
@decorators.idempotent_id('13b0f2de-9934-457b-8be0-f1bffc6915a0')
def test_http_RR_listener_with_allowed_cidrs(self):