blob: f77567ca93a4367a13efcc3267d37aa5c85941a0 [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
19Verify Redfish BMC PowerOn
George Keishing4583a082019-02-25 10:28:42 -060020 [Documentation] Verify Redfish host power on operation.
21 [Tags] Verify_Redfish_Host_PowerOn
Sridevi Rameshd737eb92019-02-13 05:03:21 -060022
23 Redfish Power On
24
George Keishingd8c8b312019-04-09 11:34:58 -050025 # TODO: Replace OCC state check with redfish property when available.
26 Verify OCC State
27
Sridevi Rameshd737eb92019-02-13 05:03:21 -060028Verify Redfish BMC GracefulRestart
George Keishing4583a082019-02-25 10:28:42 -060029 [Documentation] Verify Redfish host graceful restart operation.
30 [Tags] Verify_Redfish_Host_GracefulRestart
Sridevi Rameshd737eb92019-02-13 05:03:21 -060031
32 Redfish Host Reboot
33
34Verify Redfish BMC PowerOff
George Keishing4583a082019-02-25 10:28:42 -060035 [Documentation] Verify Redfish host power off operation.
36 [Tags] Verify_Redfish_Host_PowerOff
Sridevi Rameshd737eb92019-02-13 05:03:21 -060037
38 Redfish Hard Power Off
George Keishing36c39aa2019-03-01 04:33:58 -060039
40*** Keywords ***
41
42Test Setup Execution
43 [Documentation] Do test case setup tasks.
44
45 Start SOL Console Logging
46
47
48Test Teardown Execution
49 [Documentation] Collect FFDC and SOL log.
50
51 FFDC On Test Case Fail
52 ${sol_log}= Stop SOL Console Logging
53 Log ${sol_log}
54 Set Auto Reboot ${1}