Browse Source

Merge "Add delay to SOURCE_IP_PORT TCP test"

changes/42/777742/3
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
c813658a91
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py
  2. +3
    -0
      octavia_tempest_plugin/tests/validators.py

+ 3
- 1
octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py View File

@ -928,9 +928,11 @@ class TrafficOperationsScenarioTest(test_base.LoadBalancerBaseTestWithCompute):
listener_id, pool_id = self._listener_pool_create(
const.TCP, 60092,
pool_algorithm=const.LB_ALGORITHM_SOURCE_IP_PORT)
# Without a delay this can trigger a "Cannot assign requested
# address" warning setting the source port, leading to failure
self._test_basic_traffic(
const.TCP, 60092, listener_id, pool_id, traffic_member_count=1,
persistent=False, source_port=60092)
persistent=False, source_port=60092, delay=0.2)
except exceptions.NotImplemented as e:
message = ("The configured provider driver '{driver}' "
"does not support a feature required for this "


+ 3
- 0
octavia_tempest_plugin/tests/validators.py View File

@ -284,6 +284,9 @@ class ValidatorsMixin(test.BaseTestCase):
HTTPS_verify, requests_session=requests_session,
source_port=source_port)
if source_port:
LOG.debug('Using source port %s for request(s)', source_port)
response_counts = {}
# Send a number requests to lb vip
for i in range(repeat):


Loading…
Cancel
Save