blob: d909e7afdf8159bf438a88e72771b70d5eec0427 [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 ***
George Keishing649ec892023-12-08 18:00:50 +053011
Chris Austenb29d2e82016-06-07 12:25:35 -050012Test SSL Connection
manasarmbfdc2052018-02-20 11:57:49 +053013 [Documentation] This testcase is for testing the SSL connection to the
14 ... OpenBMC machine.
George Keishing97651c72016-10-04 00:44:15 -050015 [Tags] Test_SSL_Connection
George Keishing00ea8022016-11-15 00:21:21 -060016 Initialize OpenBMC
Chris Austenb29d2e82016-06-07 12:25:35 -050017
George Keishingac8661e2022-02-10 00:36:12 -060018Test Non SSL Connection To Port 80
manasarmbfdc2052018-02-20 11:57:49 +053019 [Documentation] Test that OpenBMC machine does not accept the non-secure
20 ... http connection at port 80 and would expect a connection error.
21 [Tags] Test_Non_SSL_Connection_To_Port_80
George Keishing649ec892023-12-08 18:00:50 +053022
manasarmbfdc2052018-02-20 11:57:49 +053023 Create Session openbmc http://${OPENBMC_HOST}/ timeout=3
George Keishing649ec892023-12-08 18:00:50 +053024 Run Keyword And Expect Error *ConnectTimeoutError* GET On Session openbmc /list
Chris Austenb29d2e82016-06-07 12:25:35 -050025
Matt Fischer46bd8c22023-09-01 11:00:26 -060026Test Non SSL Connection To HTTPS Port
George Keishing47581562017-01-12 09:12:40 -060027 [Documentation] Test that OpenBmc does not accept the non-secure
Matt Fischer46bd8c22023-09-01 11:00:26 -060028 ... http connection at port ${HTTPS_PORT} and would expect a connection error.
George Keishing365dd462023-10-12 18:56:00 +053029 [Tags] Test_Non_SSL_Connection_To_HTTPS_Port
George Keishing649ec892023-12-08 18:00:50 +053030
Matt Fischer46bd8c22023-09-01 11:00:26 -060031 Create Session openbmc http://${OPENBMC_HOST}:${HTTPS_PORT}/ timeout=3
George Keishing649ec892023-12-08 18:00:50 +053032 Run Keyword And Expect Error ConnectionError* GET On Session openbmc /list