Rahul Maheshwari | 07d91d2 | 2019-07-31 01:12:05 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Module to test IPMI chassis functionality. |
| 4 | Resource ../lib/ipmi_client.robot |
| 5 | Resource ../lib/openbmc_ffdc.robot |
| 6 | |
| 7 | Test Teardown FFDC On Test Case Fail |
| 8 | |
| 9 | *** Test Cases *** |
| 10 | |
| 11 | IPMI Chassis Status On |
| 12 | [Documentation] This test case verfies system power on status |
| 13 | ... using IPMI Get Chassis status command. |
| 14 | [Tags] IPMI_Chassis_Status_On |
| 15 | |
| 16 | Redfish Power On stack_mode=skip quiet=1 |
| 17 | ${resp}= Run IPMI Standard Command chassis status |
| 18 | ${power_status}= Get Lines Containing String ${resp} System Power |
| 19 | Should Contain ${power_status} on |
| 20 | |
| 21 | IPMI Chassis Status Off |
| 22 | [Documentation] This test case verfies system power off status |
| 23 | ... using IPMI Get Chassis status command. |
| 24 | [Tags] IPMI_Chassis_Status_Off |
| 25 | |
| 26 | Redfish Power Off stack_mode=skip quiet=1 |
| 27 | ${resp}= Run IPMI Standard Command chassis status |
| 28 | ${power_status}= Get Lines Containing String ${resp} System Power |
| 29 | Should Contain ${power_status} off |