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 | |
| 33 | |
| 34 | *** Keywords *** |
| 35 | |
| 36 | Suite Setup Execution |
| 37 | [Documentation] Power off and wait for chassis power to be off. |
| 38 | |
| 39 | ${resp}= Run IPMI Standard Command chassis power off |
| 40 | Should Be Equal As Strings ${resp} Chassis Power Control: Down/Off |
| 41 | ... msg=Unexpected chassis power control message output. |
| 42 | |
| 43 | Wait Until Keyword Succeeds 3 min 20 sec Is Chassis Power Off |
| 44 | |
| 45 | |
| 46 | Is Chassis Power Off |
| 47 | [Documentation] Check for chassis power to be off. |
| 48 | |
| 49 | ${resp}= Run IPMI Standard Command chassis power status |
| 50 | Should Be Equal As Strings ${resp} Chassis Power is off |
| 51 | ... msg=Chassis power is not off as expected. |