1*** Settings ***
2Documentation    Test suite to verify if the Robot setup is ready for use.
3
4Resource         ../lib/resource.robot
5Resource         ../lib/rest_client.robot
6Resource         ../lib/connection_client.robot
7Resource         ../lib/ipmi_client.robot
8Resource        ../lib/bmc_redfish_resource.robot
9
10*** Test Cases ***
11
12Test Redfish Setup
13    [Documentation]  Verify Redfish works.
14
15    Redfish.Login
16    Redfish.Get  /redfish/v1/
17    Redfish.Logout
18
19
20Test REST Setup
21    [Documentation]  Verify REST works.
22
23    # REST Connection and request.
24    Initialize OpenBMC
25    # Raw GET REST operation to verify session is established.
26    ${resp}=  Get Request  openbmc  /xyz/openbmc_project/
27    Should Be Equal As Strings  ${resp.status_code}  ${HTTP_OK}
28    ${content}=  To JSON  ${resp.content}  pretty_print=True
29    Log To Console  \n ${content}
30
31
32Test SSH Setup
33    [Documentation]  Verify SSH works.
34
35    BMC Execute Command  uname -a
36
37
38Test IPMI Setup
39    [Documentation]  Verify Out-of-band works.
40
41    ${chassis_status}=  Run IPMI Standard Command  chassis status
42    Log To Console  \n ${chassis_status}
43