1*** Settings ***
2Documentation    Test suite to verify if the Robot setup is ready for use.
3
4Resource         ../lib/resource.robot
5Resource         ../lib/connection_client.robot
6Resource         ../lib/ipmi_client.robot
7Resource         ../lib/bmc_redfish_resource.robot
8
9Force Tags      Openbmc_Setup
10
11*** Variables  ***
12
13${REDFISH_SUPPORT_TRANS_STATE}   ${1}
14
15*** Test Cases ***
16
17Test Redfish Setup
18    [Documentation]  Verify Redfish works.
19    [Tags]  Test_Redfish_Setup
20
21    Redfish.Login
22    Redfish.Get  /redfish/v1/
23    Redfish.Logout
24
25
26Test SSH Setup
27    [Documentation]  Verify SSH works.
28    [Tags]  Test_SSH_Setup
29
30    ${stdout}  ${stderr}  ${rc}=  BMC Execute Command  uname -a  print_out=1  print_err=1
31    IF  ${rc}
32        Fail    BMC SSH login failed.
33    END
34
35
36Test IPMI Setup
37    [Documentation]  Verify Out-of-band works.
38    [Tags]  Test_IPMI_Setup
39
40    ${chassis_status}=  Run IPMI Standard Command  chassis status
41    Log To Console  \n ${chassis_status}
42