blob: 0085f262fabeb8396b2f402afb56966be4945211 [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
manasarmbfdc2052018-02-20 11:57:49 +05302Documentation This testsuite is for testing SSL connection to OpenBMC.
Chris Austenb29d2e82016-06-07 12:25:35 -05003Suite Teardown Delete All Sessions
4
5Resource ../../lib/rest_client.robot
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06006Resource ../../lib/resource.robot
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
manasarmbfdc2052018-02-20 11:57:49 +053012 [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
manasarmbfdc2052018-02-20 11:57:49 +053017Test Non-SSL Connection To Port 80
18 [Documentation] Test that OpenBMC machine does not accept the non-secure
19 ... http connection at port 80 and would expect a connection error.
20 [Tags] Test_Non_SSL_Connection_To_Port_80
21 Create Session openbmc http://${OPENBMC_HOST}/ timeout=3
22 Run Keyword And Expect Error ConnectionError* Get Request openbmc /list
Chris Austenb29d2e82016-06-07 12:25:35 -050023
manasarmbfdc2052018-02-20 11:57:49 +053024Test Non-SSL Connection To Port 443
George Keishing47581562017-01-12 09:12:40 -060025 [Documentation] Test that OpenBmc does not accept the non-secure
manasarmbfdc2052018-02-20 11:57:49 +053026 ... http connection at port 443 and would expect a connection error.
27 [Tags] Test_Non_SSL_Connection_To_Port_443
George Keishingbd8d3b42018-04-16 03:57:54 -050028 Create Session openbmc http://${OPENBMC_HOST}:443/ timeout=3
George Keishing47581562017-01-12 09:12:40 -060029 Run Keyword And Expect Error ConnectionError* Get Request openbmc /list