Add ERROR_RESPONSE_MSG for user specific message
Changes:
- Added ERROR_RESPONSE_MSG variable for user
to key in the string.
Tested:
- Ran from the sandbox with the changes
Resolves openbmc/openbmc-test-automation#2249
Change-Id: I677fa335bd97327dac952ab62a14fb9d95ec8b26
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 9a567b3..12f12b9 100644
--- a/redfish/service_root/test_service_root_security.robot
+++ b/redfish/service_root/test_service_root_security.robot
@@ -23,6 +23,8 @@
... Cross-Origin-Resource-Policy=same-origin
... Content-Security-Policy=default-src 'none'; img-src 'self' data:; font-src 'self'; style-src 'self'; script-src 'self'; connect-src 'self' wss:; form-action 'none'; frame-ancestors 'none'; object-src 'none'; base-uri 'none'
+${ERROR_RESPONSE_MSG} *Connection refused*
+
*** Test Cases ***
Redfish Login With Invalid Credentials
@@ -63,7 +65,7 @@
${headers}= Create Dictionary Content-Type=application/json
- Run Keyword And Expect Error *Connection refused*
+ Run Keyword And Expect Error ${ERROR_RESPONSE_MSG}
... POST On Session openbmc /redfish/v1/SessionService/Sessions
... data=${data} headers=${headers}