Browse Source

New test: test_tcp_and_udp_traffic_on_same_port

It's possible to use the same VIP port for TCP and UDP protocols.
Two listeners: UDP and TCP are being created using the same VIP port.
UDP and TCP traffic validation, both should PASS.

Change-Id: Ie93829be86b8a2442911ce212cdd0bc98237b962
changes/50/755050/12
Arkady Shtempler 9 months ago
parent
commit
cac3eefc44
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py

+ 11
- 0
octavia_tempest_plugin/tests/scenario/v2/test_traffic_ops.py View File

@ -1391,3 +1391,14 @@ class TrafficOperationsScenarioTest(test_base.LoadBalancerBaseTestWithCompute):
listener_port), const.X_FORWARDED_PROTO: const.HTTP.lower()}
received_headers = _data_parser(data, expected_headers)
self.assertEqual(expected_headers, received_headers)
@decorators.idempotent_id('2b05229c-0254-11eb-8610-74e5f9e2a801')
def test_tcp_and_udp_traffic_on_same_port(self):
common_vip_port = 103
listener_id_udp, pool_id_udp = self._listener_pool_create(
const.UDP, common_vip_port)
listener_id_tcp, pool_id_tcp = self._listener_pool_create(
const.TCP, common_vip_port)
self._test_basic_traffic(const.UDP, common_vip_port, pool_id_udp)
self._test_basic_traffic(const.TCP, common_vip_port, pool_id_tcp,
persistent=False)

Loading…
Cancel
Save