Non SSL test error fix
The test expectation for the non SSL connection request will result
in connection error response.
Fix include:
- Documentation
- Connection Error check
Resolves openbmc/openbmc-test-automation#110
Change-Id: Ief042a7c7c5b5e9d57d886e339f47c7bfd56cb5e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/security/test_ssl.robot b/tests/security/test_ssl.robot
index 447967d..81a9669 100644
--- a/tests/security/test_ssl.robot
+++ b/tests/security/test_ssl.robot
@@ -23,11 +23,8 @@
Run Keyword And Expect Error ConnectionError* Get Request openbmc /list
Test non-SSL Connection to port 443
- [Documentation] This testcase is for test to check OpenBMC machine
- ... will not accepts the non-secure connection that is with http to
- ... port 443 and expect 400 in response
+ [Documentation] Test that OpenBmc does not accept the non-secure
+ ... connection with http to port 443 and expect connection error.
[Tags] Test_non_SSL_Connection_to_port_443
Create Session openbmc http://${OPENBMC_HOST}:443/
- ${resp}= Get Request openbmc /list
- Should Be Equal As Strings ${resp.status_code} ${HTTP_BAD_REQUEST}
- Should Be Equal ${resp.content} Bad Request
+ Run Keyword And Expect Error ConnectionError* Get Request openbmc /list