blob: ccf6b88dfe6d97d3dc352c039d285bea4d9181af [file] [log] [blame]
Sridevi Ramesh6da9c992016-11-23 04:26:25 -06001*** Settings ***
2Documentation This suite tests IPMI chassis status in Open BMC.
3
4Resource ../../lib/rest_client.robot
5Resource ../../lib/ipmi_client.robot
6Resource ../../lib/openbmc_ffdc.robot
7Resource ../../lib/utils.robot
8
9Suite Setup Open Connection And Log In
10Suite Teardown Close All Connections
11Test Teardown FFDC On Test Case Fail
12
13*** Test Cases ***
14
15IPMI Chassis Status On
16 [Documentation] This test case verfies system power on status
17 ... using IPMI Get Chassis status command
18 [Tags] IPMI_Chassis_Status_On
19
20 Initiate Power On
21 ${resp}= Run IPMI Standard Command chassis status
22 ${power_status}= Get Lines Containing String ${resp} System Power
23 Should Contain ${power_status} on
24
25IPMI Chassis Status Off
26 [Documentation] This test case verfies system power off status
27 ... using IPMI Get Chassis status command
28 [Tags] IPMI_Chassis_Status_Off
29
30 Initiate Power Off
31 ${resp}= Run IPMI Standard Command chassis status
32 ${power_status}= Get Lines Containing String ${resp} System Power
33 Should Contain ${power_status} off
34
35