blob: bcfc85468dafeeff37ef135c6148924ab1287913 [file] [log] [blame]
Sridevi Rameshd737eb92019-02-13 05:03:21 -06001*** Settings ***
George Keishing4583a082019-02-25 10:28:42 -06002Documentation This suite tests Redfish Host power operations.
3
Sridevi Rameshd737eb92019-02-13 05:03:21 -06004Resource ../../lib/boot_utils.robot
George Keishing36c39aa2019-03-01 04:33:58 -06005Resource ../../lib/common_utils.robot
George Keishingd8c8b312019-04-09 11:34:58 -05006Resource ../../lib/open_power_utils.robot
Sridevi Rameshd737eb92019-02-13 05:03:21 -06007
George Keishing36c39aa2019-03-01 04:33:58 -06008Test Setup Test Setup Execution
9Test Teardown Test Teardown Execution
Sridevi Rameshd737eb92019-02-13 05:03:21 -060010
11*** Test Cases ***
12
George Keishing4583a082019-02-25 10:28:42 -060013Verify Redfish Host GracefulShutdown
14 [Documentation] Verify Redfish host graceful shutdown operation.
15 [Tags] Verify_Redfish_Host_GracefulShutdown
Sridevi Rameshd737eb92019-02-13 05:03:21 -060016
17 Redfish Power Off
18
George Keishing9833f962019-10-07 12:37:57 -050019
Lei YU46b1a8e2020-01-16 14:21:53 +080020Verify Redfish BMC PowerOn With OCC State
21 [Documentation] Verify Redfish host power on operation.
22 [Tags] Verify_Redfish_BMC_PowerOn_With_OCC_State
23
24 Redfish Power On
25
26 # TODO: Replace OCC state check with redfish property when available.
27 Verify OCC State
28
29
Sridevi Rameshd737eb92019-02-13 05:03:21 -060030Verify Redfish BMC PowerOn
George Keishing4583a082019-02-25 10:28:42 -060031 [Documentation] Verify Redfish host power on operation.
32 [Tags] Verify_Redfish_Host_PowerOn
Sridevi Rameshd737eb92019-02-13 05:03:21 -060033
34 Redfish Power On
35
George Keishingd8c8b312019-04-09 11:34:58 -050036 # TODO: Replace OCC state check with redfish property when available.
37 Verify OCC State
38
George Keishing9833f962019-10-07 12:37:57 -050039 Redfish.Login
40 ${power_control}= Redfish.Get Attribute ${REDFISH_CHASSIS_POWER_URI} PowerControl
41 Rprint Vars power_control
42 Valid Dict power_control[${0}] ['PowerConsumedWatts']
43
44
Sridevi Rameshd737eb92019-02-13 05:03:21 -060045Verify Redfish BMC GracefulRestart
George Keishing4583a082019-02-25 10:28:42 -060046 [Documentation] Verify Redfish host graceful restart operation.
47 [Tags] Verify_Redfish_Host_GracefulRestart
Sridevi Rameshd737eb92019-02-13 05:03:21 -060048
George Keishinge523fc02020-03-23 12:28:01 -050049 RF SYS GracefulRestart
Sridevi Rameshd737eb92019-02-13 05:03:21 -060050
George Keishing9833f962019-10-07 12:37:57 -050051
Sridevi Rameshd737eb92019-02-13 05:03:21 -060052Verify Redfish BMC PowerOff
George Keishing4583a082019-02-25 10:28:42 -060053 [Documentation] Verify Redfish host power off operation.
54 [Tags] Verify_Redfish_Host_PowerOff
Sridevi Rameshd737eb92019-02-13 05:03:21 -060055
56 Redfish Hard Power Off
George Keishing36c39aa2019-03-01 04:33:58 -060057
58*** Keywords ***
59
60Test Setup Execution
61 [Documentation] Do test case setup tasks.
62
George Keishing9833f962019-10-07 12:37:57 -050063 Printn
George Keishing36c39aa2019-03-01 04:33:58 -060064 Start SOL Console Logging
65
66
67Test Teardown Execution
68 [Documentation] Collect FFDC and SOL log.
69
70 FFDC On Test Case Fail
71 ${sol_log}= Stop SOL Console Logging
72 Log ${sol_log}
73 Set Auto Reboot ${1}