blob: 9a4f653e675d5db3a3061a38210f31f96cdcffd7 [file] [log] [blame]
Rahul Maheshwarid1d219a2019-06-19 00:51:39 -05001*** Settings ***
2Documentation Module to test IPMI cold and warm reset functionalities.
3
4Resource ../lib/ipmi_client.robot
5Resource ../lib/openbmc_ffdc.robot
6
7Test Teardown FFDC On Test Case Fail
George Keishing5672db42019-06-25 08:45:36 -05008Suite Teardown Redfish Power Off
Rahul Maheshwarid1d219a2019-06-19 00:51:39 -05009
10*** Variables ***
11
12# User may pass LOOP_COUNT.
13${LOOP_COUNT} ${1}
14
15*** Test Cases ***
16
17Test IPMI Warm Reset
18 [Documentation] Check IPMI warm reset and wait for BMC to become online.
19 [Tags] Test_IPMI_Warm_Reset
20 Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Warm (off)
21
22
23Test IPMI Cold Reset
24 [Documentation] Check IPMI cold reset and wait for BMC to become online.
25 [Tags] Test_IPMI_Cold_Reset
26
27 Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Cold (off)
28
29
30Verify BMC Power Cycle via IPMI
31 [Documentation] Verify IPMI power cycle command works fine.
32 [Tags] Verify_BMC_Power_Cycle_via_IPMI
33
34 Redfish Power On stack_mode=skip quiet=1
35 Run IPMI Standard Command chassis power cycle
36 Wait Until Keyword Succeeds 3 min 10 sec Is IPMI Chassis Off
37 Wait Until Keyword Succeeds 3 min 10 sec Is IPMI Chassis On
38
39
40*** Keywords ***
41
42Is IPMI Chassis Off
43 [Documentation] Check if chassis state is "Off" via IPMI.
44 ${power_state}= Get Chassis Power State
45 Should Be Equal ${power_state} Off
46
47
48Is IPMI Chassis On
49 [Documentation] Check if chassis state is "On" via IPMI.
50 ${power_state}= Get Chassis Power State
51 Should Be Equal ${power_state} On