George Keishing | 1059b22 | 2017-07-21 13:24:43 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Power management test module. |
| 3 | |
Steven Sombar | b118685 | 2017-09-06 09:46:53 -0500 | [diff] [blame] | 4 | Resource ../../lib/rest_client.robot |
| 5 | Resource ../../lib/openbmc_ffdc.robot |
| 6 | Resource ../../lib/boot_utils.robot |
George Keishing | 1059b22 | 2017-07-21 13:24:43 -0500 | [diff] [blame] | 7 | |
| 8 | Suite Setup Setup The Suite |
| 9 | Test Teardown Post Test Case Execution |
| 10 | |
| 11 | *** Test Cases *** |
| 12 | |
| 13 | Verify Powercap Disabled By Default |
| 14 | [Documentation] Powercap is disabled by default. |
| 15 | [Tags] Verify_Powercap_Disabled_By_Default |
| 16 | |
| 17 | # Example: |
| 18 | # /xyz/openbmc_project/control/host0/power_cap: |
| 19 | # { |
| 20 | # "PowerCap": 0, |
| 21 | # "PowerCapEnable": 0 |
| 22 | # }, |
| 23 | |
| 24 | ${powercap}= Read Attribute ${CONTROL_HOST_URI}power_cap PowerCapEnable |
| 25 | Should Be Equal ${powercap} ${0} |
| 26 | |
| 27 | |
| 28 | *** Keywords *** |
| 29 | |
| 30 | Setup The Suite |
| 31 | [Documentation] Do test setup initialization. |
| 32 | |
| 33 | REST Power On |
| 34 | Delete Error Logs |
| 35 | |
| 36 | |
| 37 | Post Test Case Execution |
| 38 | [Documentation] Do the post test teardown. |
| 39 | ... 1. Capture FFDC on test failure. |
| 40 | |
| 41 | FFDC On Test Case Fail |