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 |
Sushma M M | 1cc2127 | 2020-01-05 23:47:46 -0600 | [diff] [blame] | 30 | |
| 31 | Verify Host PowerOff Via IPMI |
| 32 | [Documentation] Verify host power off operation using external IPMI command. |
| 33 | [Tags] Verify_Host_PowerOff_Via_IPMI |
| 34 | |
| 35 | IPMI Power Off |
| 36 | ${ipmi_state}= Get Host State Via External IPMI |
| 37 | Valid Value ipmi_state ['off'] |
| 38 | |
| 39 | Verify Host PowerOn Via IPMI |
| 40 | [Documentation] Verify host power on operation using external IPMI command. |
| 41 | [Tags] Verify_Host_PowerOn_Via_IPMI |
| 42 | |
| 43 | IPMI Power On |
| 44 | ${ipmi_state}= Get Host State Via External IPMI |
Rahul Maheshwari | 460778d | 2020-02-23 22:37:22 -0600 | [diff] [blame^] | 45 | Valid Value ipmi_state ['on'] |
| 46 | |
| 47 | |
| 48 | Verify Soft Shutdown |
| 49 | [Documentation] Verify host OS shutdown softly via IPMI command. |
| 50 | [Tags] Verify_Soft_Stutdown |
| 51 | |
| 52 | Redfish Power On stack_mode=skip |
| 53 | Run IPMI Standard Command chassis power soft |
| 54 | Wait Until Keyword Succeeds 3 min 10 sec Is Host Off Via IPMI |
| 55 | |