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 |
| 8 | |
| 9 | *** Variables *** |
| 10 | |
| 11 | # User may pass LOOP_COUNT. |
| 12 | ${LOOP_COUNT} ${1} |
| 13 | |
| 14 | *** Test Cases *** |
| 15 | |
| 16 | Test IPMI Warm Reset |
| 17 | [Documentation] Check IPMI warm reset and wait for BMC to become online. |
| 18 | [Tags] Test_IPMI_Warm_Reset |
| 19 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Warm (off) |
| 20 | |
| 21 | |
| 22 | Test IPMI Cold Reset |
| 23 | [Documentation] Check IPMI cold reset and wait for BMC to become online. |
| 24 | [Tags] Test_IPMI_Cold_Reset |
| 25 | |
| 26 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Cold (off) |
| 27 | |
| 28 | |
| 29 | Verify BMC Power Cycle via IPMI |
| 30 | [Documentation] Verify IPMI power cycle command works fine. |
| 31 | [Tags] Verify_BMC_Power_Cycle_via_IPMI |
| 32 | |
| 33 | Redfish Power On stack_mode=skip quiet=1 |
| 34 | Run IPMI Standard Command chassis power cycle |
| 35 | Wait Until Keyword Succeeds 3 min 10 sec Is IPMI Chassis Off |
| 36 | Wait Until Keyword Succeeds 3 min 10 sec Is IPMI Chassis On |
| 37 | |
| 38 | |
| 39 | *** Keywords *** |
| 40 | |
| 41 | Is IPMI Chassis Off |
| 42 | [Documentation] Check if chassis state is "Off" via IPMI. |
| 43 | ${power_state}= Get Chassis Power State |
| 44 | Should Be Equal ${power_state} Off |
| 45 | |
| 46 | |
| 47 | Is IPMI Chassis On |
| 48 | [Documentation] Check if chassis state is "On" via IPMI. |
| 49 | ${power_state}= Get Chassis Power State |
| 50 | Should Be Equal ${power_state} On |