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. |
George Keishing | fbd6700 | 2022-08-01 11:24:03 -0500 | [diff] [blame] | 32 | ${resp}= GET On Session openbmc /xyz/openbmc_project/ expected_status=any |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 33 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
George Keishing | fbd6700 | 2022-08-01 11:24:03 -0500 | [diff] [blame] | 34 | Log To Console \n ${resp.json()} |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 35 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 36 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 37 | Test SSH Setup |
| 38 | [Documentation] Verify SSH works. |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 39 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 40 | BMC Execute Command uname -a |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 41 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 42 | |
| 43 | Test IPMI Setup |
| 44 | [Documentation] Verify Out-of-band works. |
| 45 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 46 | ${chassis_status}= Run IPMI Standard Command chassis status |
| 47 | Log To Console \n ${chassis_status} |