blob: e1b94c26181cb44ca8aff295a1314294417f0048 [file] [log] [blame]
Rahul Maheshwari07d91d22019-07-31 01:12:05 -05001*** 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
Sushma M M1cc21272020-01-05 23:47:46 -060030
31Verify Host PowerOff Via IPMI
32 [Documentation] Verify host power off operation using external IPMI command.
33 [Tags] Verify_Host_PowerOff_Via_IPMI
34
35 IPMI Power Off
36 ${ipmi_state}= Get Host State Via External IPMI
37 Valid Value ipmi_state ['off']
38
39Verify Host PowerOn Via IPMI
40 [Documentation] Verify host power on operation using external IPMI command.
41 [Tags] Verify_Host_PowerOn_Via_IPMI
42
43 IPMI Power On
44 ${ipmi_state}= Get Host State Via External IPMI
45 Valid Value ipmi_state ['on']