Add missing HTTPS_PORT references
Several tests (probably more than I've found) are missing references to
HTTPS_PORT. This adds the missing reference which gives them a better
chance to pass in qemu or non-standard port setups.
Change-Id: I9807f4410702d9645db8e44b7d20cda912e21d84
Signed-off-by: Matt Fischer <matthew.fischer@hpe.com>
diff --git a/security/test_bmc_connections.robot b/security/test_bmc_connections.robot
index ca07e42..0d7d189 100644
--- a/security/test_bmc_connections.robot
+++ b/security/test_bmc_connections.robot
@@ -29,7 +29,7 @@
${loop_iteration} ${1000}
${hostname} testhostname
${MAX_UNAUTH_PER_IP} ${5}
-${bmc_url} https://${OPENBMC_HOST}
+${bmc_url} https://${OPENBMC_HOST}:${HTTPS_PORT}
*** Test Cases ***
diff --git a/security/test_bmcweb_security.robot b/security/test_bmcweb_security.robot
index 7f334be..3427e5b 100644
--- a/security/test_bmcweb_security.robot
+++ b/security/test_bmcweb_security.robot
@@ -18,7 +18,7 @@
[Documentation] Request BMC GET with invalid URL.
[Tags] Check_BMCWeb_Service_After_Attempted_GET_With_Invalid_URL
- ${invalid_url}= Set Variable https://${OPENBMC_HOST}/'redfish\\['
+ ${invalid_url}= Set Variable https://${OPENBMC_HOST}:${HTTPS_PORT}/'redfish\\['
# Exhaust bmcweb restart policy by crashing 4 times in succession.
Repeat Keyword ${LOOP_COUNT} times Run ${curl_tool} -k ${invalid_url}
diff --git a/tests/security/test_ssl.robot b/tests/security/test_ssl.robot
index 4dfe19e..08e0dfb 100644
--- a/tests/security/test_ssl.robot
+++ b/tests/security/test_ssl.robot
@@ -21,9 +21,9 @@
Create Session openbmc http://${OPENBMC_HOST}/ timeout=3
Run Keyword And Expect Error ConnectionError* Get Request openbmc /list
-Test Non SSL Connection To Port 443
+Test Non SSL Connection To HTTPS Port
[Documentation] Test that OpenBmc does not accept the non-secure
- ... http connection at port 443 and would expect a connection error.
- [Tags] Test_Non_SSL_Connection_To_Port_443
- Create Session openbmc http://${OPENBMC_HOST}:443/ timeout=3
+ ... http connection at port ${HTTPS_PORT} and would expect a connection error.
+ [Tags] Test_Non_SSL_Connection_To_Https_Port
+ Create Session openbmc http://${OPENBMC_HOST}:${HTTPS_PORT}/ timeout=3
Run Keyword And Expect Error ConnectionError* Get Request openbmc /list