blob: 1abc4abba8f11c028178bf6d4d304847f329b1d0 [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
George Keishingf86e45f2024-09-10 11:03:07 +05305Resource ../lib/rest_client.robot
6Resource ../lib/resource.robot
7Resource ../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
Igor Kanyukafeb79d62025-10-20 21:24:03 +010010Test Tags Test_SSL
11
Chris Austenb29d2e82016-06-07 12:25:35 -050012*** Test Cases ***
George Keishing649ec892023-12-08 18:00:50 +053013
Chris Austenb29d2e82016-06-07 12:25:35 -050014Test SSL Connection
manasarmbfdc2052018-02-20 11:57:49 +053015 [Documentation] This testcase is for testing the SSL connection to the
16 ... OpenBMC machine.
George Keishing97651c72016-10-04 00:44:15 -050017 [Tags] Test_SSL_Connection
George Keishing00ea8022016-11-15 00:21:21 -060018 Initialize OpenBMC
Chris Austenb29d2e82016-06-07 12:25:35 -050019
George Keishingac8661e2022-02-10 00:36:12 -060020Test Non SSL Connection To Port 80
manasarmbfdc2052018-02-20 11:57:49 +053021 [Documentation] Test that OpenBMC machine does not accept the non-secure
22 ... http connection at port 80 and would expect a connection error.
23 [Tags] Test_Non_SSL_Connection_To_Port_80
George Keishing649ec892023-12-08 18:00:50 +053024
manasarmbfdc2052018-02-20 11:57:49 +053025 Create Session openbmc http://${OPENBMC_HOST}/ timeout=3
George Keishing649ec892023-12-08 18:00:50 +053026 Run Keyword And Expect Error *ConnectTimeoutError* GET On Session openbmc /list
Chris Austenb29d2e82016-06-07 12:25:35 -050027
Matt Fischer46bd8c22023-09-01 11:00:26 -060028Test Non SSL Connection To HTTPS Port
George Keishing47581562017-01-12 09:12:40 -060029 [Documentation] Test that OpenBmc does not accept the non-secure
Matt Fischer46bd8c22023-09-01 11:00:26 -060030 ... http connection at port ${HTTPS_PORT} and would expect a connection error.
George Keishing365dd462023-10-12 18:56:00 +053031 [Tags] Test_Non_SSL_Connection_To_HTTPS_Port
George Keishing649ec892023-12-08 18:00:50 +053032
Matt Fischer46bd8c22023-09-01 11:00:26 -060033 Create Session openbmc http://${OPENBMC_HOST}:${HTTPS_PORT}/ timeout=3
George Keishing649ec892023-12-08 18:00:50 +053034 Run Keyword And Expect Error ConnectionError* GET On Session openbmc /list