1*** Settings ***
2Documentation    Module to test IPMI cold and warm reset functionalities.
3
4Resource         ../lib/ipmi_client.robot
5Resource         ../lib/openbmc_ffdc.robot
6
7Suite Setup      Redfish.Login
8Suite Teardown   Redfish.Logout
9
10Test 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
19Test IPMI Warm Reset
20    [Documentation]  Check IPMI warm reset and wait for BMC to become online.
21    [Tags]  Test_IPMI_Warm_Reset
22    Repeat Keyword  ${LOOP_COUNT} times  IPMI MC Reset Warm (off)
23
24
25Test IPMI Cold Reset
26    [Documentation]  Check IPMI cold reset and wait for BMC to become online.
27    [Tags]  Test_IPMI_Cold_Reset
28
29    Repeat Keyword  ${LOOP_COUNT} times  IPMI MC Reset Cold (run)
30
31
32Verify BMC Power Cycle via IPMI
33    [Documentation]  Verify IPMI power cycle command works fine.
34    [Tags]  Verify_BMC_Power_Cycle_via_IPMI
35
36    Repeat Keyword  ${LOOP_COUNT} times  IPMI Power Cycle
37
38
39Verify Power Reset via IPMI
40    [Documentation]  Verify IPMI power reset command works fine.
41    [Tags]  Verify_Power_Reset_via_IPMI
42
43    Repeat Keyword  ${LOOP_COUNT} times  IPMI Power Reset
44