Redfish test to test wrong port 80 protocol
Added Test Case:
- Redfish Login Using HTTPS Wrong Port 80 Protocol
Tested: On latest Master.
Change-Id: I959e82b57e3f1a56ef407bd3e86317cb703037b9
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/service_root/test_service_root_security.robot b/redfish/service_root/test_service_root_security.robot
index 2cd2b44..eb1a083 100644
--- a/redfish/service_root/test_service_root_security.robot
+++ b/redfish/service_root/test_service_root_security.robot
@@ -35,6 +35,21 @@
... data=${data} headers=${headers}
+Redfish Login Using HTTPS Wrong Port 80 Protocol
+ [Documentation] Login to BMC web through wrong protocol port 80.
+ [Tags] Redfish_Login_Using_HTTPS_Wrong_Port_80_Protocol
+
+ Create Session openbmc https://${OPENBMC_HOST}:80
+ ${data}= Create Dictionary
+ ... UserName=${OPENBMC_USERNAME} Password=${OPENBMC_PASSWORD}
+
+ ${headers}= Create Dictionary Content-Type=application/json
+
+ Run Keyword And Expect Error *Connection refused*
+ ... Post Request openbmc /redfish/v1/SessionService/Sessions
+ ... data=${data} headers=${headers}
+
+
*** Keywords ***
Login And Verify Redfish Response