blob: eaefc30c984be4b16bec0be5f9a53f42a4fd5311 [file] [log] [blame]
George Keishing3df030f2017-12-09 13:24:41 -06001*** Settings ***
2Documentation Test suite to verify if the Robot setup is ready for use.
3
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06004Resource ../lib/resource.robot
George Keishing3df030f2017-12-09 13:24:41 -06005Resource ../lib/rest_client.robot
6Resource ../lib/connection_client.robot
7Resource ../lib/ipmi_client.robot
George Keishing998c16c2019-12-11 11:22:58 -06008Resource ../lib/bmc_redfish_resource.robot
George Keishing3df030f2017-12-09 13:24:41 -06009
10*** Test Cases ***
11
George Keishing998c16c2019-12-11 11:22:58 -060012Test Redfish Setup
13 [Documentation] Verify Redfish works.
George Keishing3df030f2017-12-09 13:24:41 -060014
George Keishing4eb12082022-03-11 07:44:36 -060015 Skip If ${REDFISH_SUPPORT_TRANS_STATE} == ${0}
George Keishing5ad0b022022-03-10 02:43:30 -060016 ... Skipping Redfish check, user explicitly requested for REST.
17
George Keishing998c16c2019-12-11 11:22:58 -060018 Redfish.Login
19 Redfish.Get /redfish/v1/
20 Redfish.Logout
21
22
23Test REST Setup
24 [Documentation] Verify REST works.
George Keishing3df030f2017-12-09 13:24:41 -060025
George Keishing4eb12082022-03-11 07:44:36 -060026 Skip If ${REDFISH_SUPPORT_TRANS_STATE} == ${1}
George Keishing5ad0b022022-03-10 02:43:30 -060027 ... Skipping REST check, user explicitly requested for Redfish.
28
George Keishing3df030f2017-12-09 13:24:41 -060029 # REST Connection and request.
30 Initialize OpenBMC
31 # Raw GET REST operation to verify session is established.
32 ${resp}= Get Request openbmc /xyz/openbmc_project/
33 Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
34 ${content}= To JSON ${resp.content} pretty_print=True
35 Log To Console \n ${content}
36
George Keishing3df030f2017-12-09 13:24:41 -060037
George Keishing998c16c2019-12-11 11:22:58 -060038Test SSH Setup
39 [Documentation] Verify SSH works.
George Keishing3df030f2017-12-09 13:24:41 -060040
George Keishing998c16c2019-12-11 11:22:58 -060041 BMC Execute Command uname -a
George Keishing3df030f2017-12-09 13:24:41 -060042
George Keishing998c16c2019-12-11 11:22:58 -060043
44Test IPMI Setup
45 [Documentation] Verify Out-of-band works.
46
George Keishing3df030f2017-12-09 13:24:41 -060047 ${chassis_status}= Run IPMI Standard Command chassis status
48 Log To Console \n ${chassis_status}