blob: 447967daf4e51b1525031a2541791263b12c0d3e [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2Documentation This testsuite is for testing SSL connection to OpenBMC
3Suite Teardown Delete All Sessions
4
5Resource ../../lib/rest_client.robot
6Resource ../../lib/resource.txt
George Keishingd55a4be2016-08-26 03:28:17 -05007Resource ../../lib/openbmc_ffdc.robot
Gunnar Millseac1af22016-11-14 15:30:09 -06008Test Teardown FFDC On Test Case Fail
Chris Austenb29d2e82016-06-07 12:25:35 -05009
Chris Austenb29d2e82016-06-07 12:25:35 -050010*** Test Cases ***
11Test SSL Connection
12 [Documentation] This testcase is for testing the SSL connection to the
13 ... OpenBMC machine.
George Keishing97651c72016-10-04 00:44:15 -050014 [Tags] Test_SSL_Connection
George Keishing00ea8022016-11-15 00:21:21 -060015 Initialize OpenBMC
Chris Austenb29d2e82016-06-07 12:25:35 -050016
17Test non-SSL Connection to port 80
18 [Documentation] This testcase is for test to check OpenBMC machine
19 ... will not accepts the non-secure connection that is with http to
20 ... port 80 and expect a connection error
George Keishing97651c72016-10-04 00:44:15 -050021 [Tags] Test_non_SSL_Connection_to_port_80
Chris Austenb29d2e82016-06-07 12:25:35 -050022 Create Session openbmc http://${OPENBMC_HOST}/ timeout=3
George Keishing410b6292016-07-05 10:40:16 -050023 Run Keyword And Expect Error ConnectionError* Get Request openbmc /list
Chris Austenb29d2e82016-06-07 12:25:35 -050024
25Test non-SSL Connection to port 443
26 [Documentation] This testcase is for test to check OpenBMC machine
27 ... will not accepts the non-secure connection that is with http to
28 ... port 443 and expect 400 in response
George Keishingcac24c72016-09-23 04:44:19 -050029 [Tags] Test_non_SSL_Connection_to_port_443
Chris Austenb29d2e82016-06-07 12:25:35 -050030 Create Session openbmc http://${OPENBMC_HOST}:443/
31 ${resp}= Get Request openbmc /list
32 Should Be Equal As Strings ${resp.status_code} ${HTTP_BAD_REQUEST}
33 Should Be Equal ${resp.content} Bad Request