1*** 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.robot
7Resource          ../../lib/openbmc_ffdc.robot
8Test Teardown     FFDC On Test Case Fail
9
10*** Test Cases ***
11
12Test SSL Connection
13    [Documentation]  This testcase is for testing the SSL connection to the
14    ...  OpenBMC machine.
15    [Tags]  Test_SSL_Connection
16    Initialize OpenBMC
17
18Test Non SSL Connection To Port 80
19    [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
22
23    Create Session  openbmc  http://${OPENBMC_HOST}/  timeout=3
24    Run Keyword And Expect Error  *ConnectTimeoutError*  GET On Session  openbmc  /list
25
26Test Non SSL Connection To HTTPS Port
27    [Documentation]  Test that OpenBmc does not accept the non-secure
28    ...  http connection at port ${HTTPS_PORT} and would expect a connection error.
29    [Tags]  Test_Non_SSL_Connection_To_HTTPS_Port
30
31    Create Session  openbmc  http://${OPENBMC_HOST}:${HTTPS_PORT}/  timeout=3
32    Run Keyword And Expect Error  ConnectionError*  GET On Session  openbmc  /list
33