1*** Settings ***
2Documentation    This suite tests Redfish Host power operations.
3
4Resource         ../../lib/boot_utils.robot
5Resource         ../../lib/common_utils.robot
6Resource         ../../lib/open_power_utils.robot
7
8Test Setup       Test Setup Execution
9Test Teardown    Test Teardown Execution
10
11*** Test Cases ***
12
13Verify Redfish Host GracefulShutdown
14    [Documentation]  Verify Redfish host graceful shutdown operation.
15    [Tags]  Verify_Redfish_Host_GracefulShutdown
16
17    Redfish Power Off
18
19Verify Redfish BMC PowerOn
20    [Documentation]  Verify Redfish host power on operation.
21    [Tags]  Verify_Redfish_Host_PowerOn
22
23    Redfish Power On
24
25    # TODO: Replace OCC state check with redfish property when available.
26    Verify OCC State
27
28Verify Redfish BMC GracefulRestart
29    [Documentation]  Verify Redfish host graceful restart operation.
30    [Tags]  Verify_Redfish_Host_GracefulRestart
31
32    Redfish Host Reboot
33
34Verify Redfish BMC PowerOff
35    [Documentation]  Verify Redfish host power off operation.
36    [Tags]  Verify_Redfish_Host_PowerOff
37
38    Redfish Hard Power Off
39
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}
55