blob: 007f2db258db8791b7e8bdce5cb6b2bd769d73b1 [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 Keishing998c16c2019-12-11 11:22:58 -060015 Redfish.Login
16 Redfish.Get /redfish/v1/
17 Redfish.Logout
18
19
20Test REST Setup
21 [Documentation] Verify REST works.
George Keishing3df030f2017-12-09 13:24:41 -060022
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
George Keishing3df030f2017-12-09 13:24:41 -060031
George Keishing998c16c2019-12-11 11:22:58 -060032Test SSH Setup
33 [Documentation] Verify SSH works.
George Keishing3df030f2017-12-09 13:24:41 -060034
George Keishing998c16c2019-12-11 11:22:58 -060035 BMC Execute Command uname -a
George Keishing3df030f2017-12-09 13:24:41 -060036
George Keishing998c16c2019-12-11 11:22:58 -060037
38Test IPMI Setup
39 [Documentation] Verify Out-of-band works.
40
George Keishing3df030f2017-12-09 13:24:41 -060041 ${chassis_status}= Run IPMI Standard Command chassis status
42 Log To Console \n ${chassis_status}