[PATCH openbmc-test-automation 28/60] Added one more testcase to test non-ssl connection to port 443

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Jan 12 03:49:54 AEDT 2016


From: Manjunath A Kumatagi <mkumatag at in.ibm.com>

---
 tests/security/test_ssl.robot | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/tests/security/test_ssl.robot b/tests/security/test_ssl.robot
index 3c098b0..b376a62 100644
--- a/tests/security/test_ssl.robot
+++ b/tests/security/test_ssl.robot
@@ -17,9 +17,18 @@ Test SSL Connection
     ${jsondata}=    To Json    ${resp.content}
     Should Not Be Empty     ${jsondata}
 
-Test non-SSL Connection - Negative
+Test non-SSL Connection to port 80
     [Documentation]     This testcase is for test to check OpenBMC machine
-    ...     will not accepts the non-secure connection that is with http.
-    ...     Expected a connection error when we try making a call
+    ...     will not accepts the non-secure connection that is with http to
+    ...     port 80 and expect a connection error
     Create Session    openbmc    http://${OPENBMC_HOST}/
     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
+    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
-- 
2.6.4




More information about the openbmc mailing list