From 3f10a8d478b9148c10f12ddef7af485002e4c9c2 Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:42:50 +0100 Subject: [PATCH] Pass IP address of API under test to testssl.sh So that same one is used by Python tests and testssl.sh tests Co-authored-by: Simon Lo --- nmostesting/suites/BCP00301Test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nmostesting/suites/BCP00301Test.py b/nmostesting/suites/BCP00301Test.py index 08fa1da9..de6cf2c1 100644 --- a/nmostesting/suites/BCP00301Test.py +++ b/nmostesting/suites/BCP00301Test.py @@ -56,7 +56,9 @@ def perform_test_ssl(self, test, args=None): "--openssl-timeout", str(CONFIG.HTTP_TIMEOUT), "--add-ca", - CONFIG.CERT_TRUST_ROOT_CA + CONFIG.CERT_TRUST_ROOT_CA, + "--ip", + self.apis[SECURE_API_KEY]["ip"] ] + args + ["{}:{}".format(self.apis[SECURE_API_KEY]["hostname"], self.apis[SECURE_API_KEY]["port"])] )