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 | |
George Keishing | 3794d76 | 2018-02-27 00:52:54 -0600 | [diff] [blame] | 10 | Test Teardown FFDC On Test Case Fail |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | # User may pass LOOP_COUNT. |
| 15 | ${LOOP_COUNT} ${1} |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Test IPMI Warm Reset |
| 20 | [Documentation] Check IPMI warm reset and wait for BMC to become online. |
| 21 | [Tags] Test_IPMI_Warm_Reset |
| 22 | |
| 23 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Warm (off) |
| 24 | |
| 25 | |
| 26 | Test IPMI Cold Reset |
| 27 | [Documentation] Check IPMI cold reset and wait for BMC to become online. |
| 28 | [Tags] Test_IPMI_Cold_Reset |
| 29 | |
| 30 | Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Cold (off) |
| 31 | |
Manash Sarma | f8c4075 | 2018-03-13 16:38:16 +0530 | [diff] [blame] | 32 | Verify BMC Power Cycle via IPMI |
| 33 | [Documentation] Verify IPMI power cycle command works fine. |
| 34 | [Tags] Verify_BMC_Power_Cycle_via_IPMI |
| 35 | |
| 36 | REST Power On stack_mode=skip |
Rahul Maheshwari | 6bacc4f | 2018-12-17 00:32:28 -0600 | [diff] [blame] | 37 | Run IPMI Standard Command chassis power cycle |
Manash Sarma | f8c4075 | 2018-03-13 16:38:16 +0530 | [diff] [blame] | 38 | Wait Until Keyword Succeeds 3 min 10 sec Is Host Off |
| 39 | Wait Until Keyword Succeeds 3 min 10 sec Is Host Running |