George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test suite to verify if the Robot setup is ready for use. |
| 3 | |
Sandhya Somashekar | 839a0c2 | 2019-01-31 05:05:43 -0600 | [diff] [blame] | 4 | Resource ../lib/resource.robot |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/connection_client.robot |
| 7 | Resource ../lib/ipmi_client.robot |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 8 | Resource ../lib/bmc_redfish_resource.robot |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 9 | |
| 10 | *** Test Cases *** |
| 11 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 12 | Test Redfish Setup |
| 13 | [Documentation] Verify Redfish works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 14 | |
George Keishing | 4eb1208 | 2022-03-11 07:44:36 -0600 | [diff] [blame] | 15 | Skip If ${REDFISH_SUPPORT_TRANS_STATE} == ${0} |
George Keishing | 5ad0b02 | 2022-03-10 02:43:30 -0600 | [diff] [blame] | 16 | ... Skipping Redfish check, user explicitly requested for REST. |
| 17 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 18 | Redfish.Login |
| 19 | Redfish.Get /redfish/v1/ |
| 20 | Redfish.Logout |
| 21 | |
| 22 | |
| 23 | Test REST Setup |
| 24 | [Documentation] Verify REST works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 25 | |
George Keishing | 4eb1208 | 2022-03-11 07:44:36 -0600 | [diff] [blame] | 26 | Skip If ${REDFISH_SUPPORT_TRANS_STATE} == ${1} |
George Keishing | 5ad0b02 | 2022-03-10 02:43:30 -0600 | [diff] [blame] | 27 | ... Skipping REST check, user explicitly requested for Redfish. |
| 28 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 29 | # 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 Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 37 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 38 | Test SSH Setup |
| 39 | [Documentation] Verify SSH works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 40 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 41 | BMC Execute Command uname -a |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 42 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 43 | |
| 44 | Test IPMI Setup |
| 45 | [Documentation] Verify Out-of-band works. |
| 46 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 47 | ${chassis_status}= Run IPMI Standard Command chassis status |
| 48 | Log To Console \n ${chassis_status} |