George Keishing | 3794d76 | 2018-02-27 00:52:54 -0600 | [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 | Resource ../../lib/state_manager.robot |
| 7 | Resource ../../lib/utils.robot |
| 8 | Resource ../../lib/boot_utils.robot |
| 9 | |
| 10 | Suite Setup Suite Setup Execution |
| 11 | Test Teardown FFDC On Test Case Fail |
| 12 | |
| 13 | *** Variables *** |
| 14 | |
| 15 | # User may pass LOOP_COUNT. |
| 16 | ${LOOP_COUNT} ${1} |
| 17 | |
| 18 | *** Test Cases *** |
| 19 | |
| 20 | Test IPMI Warm Reset |
| 21 | [Documentation] Check IPMI warm reset and wait for BMC to become online. |
| 22 | [Tags] Test_IPMI_Warm_Reset |
| 23 | |
| 24 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Warm (off) |
| 25 | |
| 26 | |
| 27 | Test IPMI Cold Reset |
| 28 | [Documentation] Check IPMI cold reset and wait for BMC to become online. |
| 29 | [Tags] Test_IPMI_Cold_Reset |
| 30 | |
| 31 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Cold (off) |
| 32 | |
Manash Sarma | f8c4075 | 2018-03-13 16:38:16 +0530 | [diff] [blame] | 33 | Verify BMC Power Cycle via IPMI |
| 34 | [Documentation] Verify IPMI power cycle command works fine. |
| 35 | [Tags] Verify_BMC_Power_Cycle_via_IPMI |
| 36 | |
| 37 | REST Power On stack_mode=skip |
| 38 | Run External IPMI Standard Command chassis power cycle |
| 39 | Wait Until Keyword Succeeds 3 min 10 sec Is Host Off |
| 40 | Wait Until Keyword Succeeds 3 min 10 sec Is Host Running |
George Keishing | 3794d76 | 2018-02-27 00:52:54 -0600 | [diff] [blame] | 41 | |
| 42 | *** Keywords *** |
| 43 | |
| 44 | Suite Setup Execution |
| 45 | [Documentation] Power off and wait for chassis power to be off. |
| 46 | |
| 47 | ${resp}= Run IPMI Standard Command chassis power off |
| 48 | Should Be Equal As Strings ${resp} Chassis Power Control: Down/Off |
| 49 | ... msg=Unexpected chassis power control message output. |
| 50 | |
| 51 | Wait Until Keyword Succeeds 3 min 20 sec Is Chassis Power Off |
| 52 | |
| 53 | |
| 54 | Is Chassis Power Off |
| 55 | [Documentation] Check for chassis power to be off. |
| 56 | |
| 57 | ${resp}= Run IPMI Standard Command chassis power status |
| 58 | Should Be Equal As Strings ${resp} Chassis Power is off |
| 59 | ... msg=Chassis power is not off as expected. |