blob: 3efa6f26d1418a6d932915ca7646567a47662edb [file] [log] [blame]
George Keishing3794d762018-02-27 00:52:54 -06001*** Settings ***
2Documentation Module to test IPMI cold and warm reset functionalities.
3
4Resource ../../lib/ipmi_client.robot
5Resource ../../lib/openbmc_ffdc.robot
6Resource ../../lib/state_manager.robot
7Resource ../../lib/utils.robot
8Resource ../../lib/boot_utils.robot
9
10Suite Setup Suite Setup Execution
11Test 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
20Test 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
27Test 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 Sarmaf8c40752018-03-13 16:38:16 +053033Verify 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 Keishing3794d762018-02-27 00:52:54 -060041
42*** Keywords ***
43
44Suite 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
54Is 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.