blob: 08e0dfbc71ba08da1927ef7d3ff8a52dc8f752b5 [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
George Keishingac8661e2022-02-10 00:36:12 -060017Test Non SSL Connection To Port 80
manasarmbfdc2052018-02-20 11:57:49 +053018 [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
Matt Fischer46bd8c22023-09-01 11:00:26 -060024Test Non SSL Connection To HTTPS Port
George Keishing47581562017-01-12 09:12:40 -060025 [Documentation] Test that OpenBmc does not accept the non-secure
Matt Fischer46bd8c22023-09-01 11:00:26 -060026 ... http connection at port ${HTTPS_PORT} and would expect a connection error.
27 [Tags] Test_Non_SSL_Connection_To_Https_Port
28 Create Session openbmc http://${OPENBMC_HOST}:${HTTPS_PORT}/ timeout=3
George Keishing47581562017-01-12 09:12:40 -060029 Run Keyword And Expect Error ConnectionError* Get Request openbmc /list