blob: 91a98a615b4b4ba32fa638805a439c51eda7bead [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
Rahul Maheshwari460778d2020-02-23 22:37:22 -060045 Valid Value ipmi_state ['on']
46
47
48Verify Soft Shutdown
49 [Documentation] Verify host OS shutdown softly via IPMI command.
50 [Tags] Verify_Soft_Stutdown
51
52 Redfish Power On stack_mode=skip
53 Run IPMI Standard Command chassis power soft
54 Wait Until Keyword Succeeds 3 min 10 sec Is Host Off Via IPMI
55