1*** Settings ***
2
3Documentation    Module to test IPMI chassis functionality.
4Resource         ../lib/ipmi_client.robot
5Resource         ../lib/openbmc_ffdc.robot
6
7Test Teardown    FFDC On Test Case Fail
8
9*** Test Cases ***
10
11IPMI Chassis Status On
12    [Documentation]  This test case verfies system power on status
13    ...               using IPMI Get Chassis status command.
14    [Tags]  IPMI_Chassis_Status_On
15
16    Redfish Power On  stack_mode=skip  quiet=1
17    ${resp}=  Run IPMI Standard Command  chassis status
18    ${power_status}=  Get Lines Containing String  ${resp}  System Power
19    Should Contain  ${power_status}  on
20
21IPMI Chassis Status Off
22    [Documentation]  This test case verfies system power off status
23    ...               using IPMI Get Chassis status command.
24    [Tags]  IPMI_Chassis_Status_Off
25
26    Redfish Power Off  stack_mode=skip  quiet=1
27    ${resp}=  Run IPMI Standard Command  chassis status
28    ${power_status}=  Get Lines Containing String  ${resp}  System Power
29    Should Contain  ${power_status}  off
30