Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 1 | *** Settings *** |
George Keishing | 4583a08 | 2019-02-25 10:28:42 -0600 | [diff] [blame] | 2 | Documentation This suite tests Redfish Host power operations. |
| 3 | |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 4 | Resource ../../lib/boot_utils.robot |
George Keishing | 36c39aa | 2019-03-01 04:33:58 -0600 | [diff] [blame] | 5 | Resource ../../lib/common_utils.robot |
George Keishing | d8c8b31 | 2019-04-09 11:34:58 -0500 | [diff] [blame] | 6 | Resource ../../lib/open_power_utils.robot |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 7 | |
George Keishing | 36c39aa | 2019-03-01 04:33:58 -0600 | [diff] [blame] | 8 | Test Setup Test Setup Execution |
| 9 | Test Teardown Test Teardown Execution |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 10 | |
| 11 | *** Test Cases *** |
| 12 | |
George Keishing | 4583a08 | 2019-02-25 10:28:42 -0600 | [diff] [blame] | 13 | Verify Redfish Host GracefulShutdown |
| 14 | [Documentation] Verify Redfish host graceful shutdown operation. |
| 15 | [Tags] Verify_Redfish_Host_GracefulShutdown |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 16 | |
| 17 | Redfish Power Off |
| 18 | |
George Keishing | 9833f96 | 2019-10-07 12:37:57 -0500 | [diff] [blame] | 19 | |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 20 | Verify Redfish BMC PowerOn |
George Keishing | 4583a08 | 2019-02-25 10:28:42 -0600 | [diff] [blame] | 21 | [Documentation] Verify Redfish host power on operation. |
| 22 | [Tags] Verify_Redfish_Host_PowerOn |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 23 | |
| 24 | Redfish Power On |
| 25 | |
George Keishing | d8c8b31 | 2019-04-09 11:34:58 -0500 | [diff] [blame] | 26 | # TODO: Replace OCC state check with redfish property when available. |
| 27 | Verify OCC State |
| 28 | |
George Keishing | 9833f96 | 2019-10-07 12:37:57 -0500 | [diff] [blame] | 29 | Redfish.Login |
| 30 | ${power_control}= Redfish.Get Attribute ${REDFISH_CHASSIS_POWER_URI} PowerControl |
| 31 | Rprint Vars power_control |
| 32 | Valid Dict power_control[${0}] ['PowerConsumedWatts'] |
| 33 | |
| 34 | |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 35 | Verify Redfish BMC GracefulRestart |
George Keishing | 4583a08 | 2019-02-25 10:28:42 -0600 | [diff] [blame] | 36 | [Documentation] Verify Redfish host graceful restart operation. |
| 37 | [Tags] Verify_Redfish_Host_GracefulRestart |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 38 | |
| 39 | Redfish Host Reboot |
| 40 | |
George Keishing | 9833f96 | 2019-10-07 12:37:57 -0500 | [diff] [blame] | 41 | |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 42 | Verify Redfish BMC PowerOff |
George Keishing | 4583a08 | 2019-02-25 10:28:42 -0600 | [diff] [blame] | 43 | [Documentation] Verify Redfish host power off operation. |
| 44 | [Tags] Verify_Redfish_Host_PowerOff |
Sridevi Ramesh | d737eb9 | 2019-02-13 05:03:21 -0600 | [diff] [blame] | 45 | |
| 46 | Redfish Hard Power Off |
George Keishing | 36c39aa | 2019-03-01 04:33:58 -0600 | [diff] [blame] | 47 | |
| 48 | *** Keywords *** |
| 49 | |
| 50 | Test Setup Execution |
| 51 | [Documentation] Do test case setup tasks. |
| 52 | |
George Keishing | 9833f96 | 2019-10-07 12:37:57 -0500 | [diff] [blame] | 53 | Printn |
George Keishing | 36c39aa | 2019-03-01 04:33:58 -0600 | [diff] [blame] | 54 | Start SOL Console Logging |
| 55 | |
| 56 | |
| 57 | Test Teardown Execution |
| 58 | [Documentation] Collect FFDC and SOL log. |
| 59 | |
| 60 | FFDC On Test Case Fail |
| 61 | ${sol_log}= Stop SOL Console Logging |
| 62 | Log ${sol_log} |
| 63 | Set Auto Reboot ${1} |