Add TLS SNI scenario tests
This patch adds scenario tests that exercise the SNI capabilities
of the Octavia TLS offloading.
Depends-On: https://review.opendev.org/690444
Change-Id: I4bbd103e34997dd6b1bb64cb5d69b5135c6e26ea
diff --git a/octavia_tempest_plugin/tests/test_base.py b/octavia_tempest_plugin/tests/test_base.py
index c8f7954..5033ade 100644
--- a/octavia_tempest_plugin/tests/test_base.py
+++ b/octavia_tempest_plugin/tests/test_base.py
@@ -861,7 +861,7 @@
raise Exception()
def check_members_balanced(self, vip_address, traffic_member_count=2,
- protocol='http', verify=True):
+ protocol='http', verify=True, protocol_port=80):
handler = requests
if CONF.load_balancer.test_reuse_connection:
handler = requests.Session()
@@ -875,7 +875,8 @@
# Send a number requests to lb vip
for i in range(20):
try:
- r = handler.get('{0}://{1}'.format(protocol, vip_address),
+ r = handler.get('{0}://{1}:{2}'.format(protocol, vip_address,
+ protocol_port),
timeout=2, verify=verify)
if r.content in response_counts: