Rahul Maheshwari | d1d219a | 2019-06-19 00:51:39 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Module to test IPMI cold and warm reset functionalities. |
| 3 | |
| 4 | Resource ../lib/ipmi_client.robot |
| 5 | Resource ../lib/openbmc_ffdc.robot |
| 6 | |
| 7 | Test Teardown FFDC On Test Case Fail |
George Keishing | 5672db4 | 2019-06-25 08:45:36 -0500 | [diff] [blame] | 8 | Suite Teardown Redfish Power Off |
Rahul Maheshwari | d1d219a | 2019-06-19 00:51:39 -0500 | [diff] [blame] | 9 | |
| 10 | *** Variables *** |
| 11 | |
| 12 | # User may pass LOOP_COUNT. |
| 13 | ${LOOP_COUNT} ${1} |
| 14 | |
| 15 | *** Test Cases *** |
| 16 | |
| 17 | Test IPMI Warm Reset |
| 18 | [Documentation] Check IPMI warm reset and wait for BMC to become online. |
| 19 | [Tags] Test_IPMI_Warm_Reset |
| 20 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Warm (off) |
| 21 | |
| 22 | |
| 23 | Test IPMI Cold Reset |
| 24 | [Documentation] Check IPMI cold reset and wait for BMC to become online. |
| 25 | [Tags] Test_IPMI_Cold_Reset |
| 26 | |
| 27 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Cold (off) |
| 28 | |
| 29 | |
| 30 | Verify BMC Power Cycle via IPMI |
| 31 | [Documentation] Verify IPMI power cycle command works fine. |
| 32 | [Tags] Verify_BMC_Power_Cycle_via_IPMI |
| 33 | |
| 34 | Redfish Power On stack_mode=skip quiet=1 |
| 35 | Run IPMI Standard Command chassis power cycle |
| 36 | Wait Until Keyword Succeeds 3 min 10 sec Is IPMI Chassis Off |
| 37 | Wait Until Keyword Succeeds 3 min 10 sec Is IPMI Chassis On |
| 38 | |
| 39 | |
| 40 | *** Keywords *** |
| 41 | |
| 42 | Is IPMI Chassis Off |
| 43 | [Documentation] Check if chassis state is "Off" via IPMI. |
| 44 | ${power_state}= Get Chassis Power State |
| 45 | Should Be Equal ${power_state} Off |
| 46 | |
| 47 | |
| 48 | Is IPMI Chassis On |
| 49 | [Documentation] Check if chassis state is "On" via IPMI. |
| 50 | ${power_state}= Get Chassis Power State |
| 51 | Should Be Equal ${power_state} On |