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/connection_client.robot |
| 6 | Resource ../lib/ipmi_client.robot |
Steven Cho | d1d7ebd | 2024-03-29 17:40:55 +0800 | [diff] [blame] | 7 | Resource ../lib/bmc_redfish_resource.robot |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 8 | |
George Keishing | 66634a8 | 2023-12-12 10:27:25 +0530 | [diff] [blame] | 9 | Force Tags Openbmc_Setup |
| 10 | |
Steven Cho | d1d7ebd | 2024-03-29 17:40:55 +0800 | [diff] [blame] | 11 | *** Variables *** |
George Keishing | 66634a8 | 2023-12-12 10:27:25 +0530 | [diff] [blame] | 12 | |
| 13 | ${REDFISH_SUPPORT_TRANS_STATE} ${1} |
| 14 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 15 | *** Test Cases *** |
| 16 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 17 | Test Redfish Setup |
| 18 | [Documentation] Verify Redfish works. |
George Keishing | 66634a8 | 2023-12-12 10:27:25 +0530 | [diff] [blame] | 19 | [Tags] Test_Redfish_Setup |
George Keishing | 5ad0b02 | 2022-03-10 02:43:30 -0600 | [diff] [blame] | 20 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 21 | Redfish.Login |
| 22 | Redfish.Get /redfish/v1/ |
| 23 | Redfish.Logout |
| 24 | |
| 25 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 26 | Test SSH Setup |
| 27 | [Documentation] Verify SSH works. |
George Keishing | 66634a8 | 2023-12-12 10:27:25 +0530 | [diff] [blame] | 28 | [Tags] Test_SSH_Setup |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 29 | |
Utpal Patel | 9a59df7 | 2023-03-21 12:43:58 -0400 | [diff] [blame] | 30 | ${stdout} ${stderr} ${rc}= BMC Execute Command uname -a print_out=1 print_err=1 |
| 31 | IF ${rc} |
| 32 | Fail BMC SSH login failed. |
| 33 | END |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 34 | |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 35 | |
| 36 | Test IPMI Setup |
| 37 | [Documentation] Verify Out-of-band works. |
George Keishing | 66634a8 | 2023-12-12 10:27:25 +0530 | [diff] [blame] | 38 | [Tags] Test_IPMI_Setup |
George Keishing | 998c16c | 2019-12-11 11:22:58 -0600 | [diff] [blame] | 39 | |
George Keishing | 3df030f | 2017-12-09 13:24:41 -0600 | [diff] [blame] | 40 | ${chassis_status}= Run IPMI Standard Command chassis status |
| 41 | Log To Console \n ${chassis_status} |