blob: d4bfb01471307df57c39a17c7079abdca2f733d1 [file] [log] [blame]
George Keishing1059b222017-07-21 13:24:43 -05001*** Settings ***
2Documentation Power management test module.
3
4Resource ../lib/rest_client.robot
5Resource ../lib/openbmc_ffdc.robot
6Resource ../lib/boot_utils.robot
7
8Suite Setup Setup The Suite
9Test Teardown Post Test Case Execution
10
11*** Test Cases ***
12
13Verify 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
30Setup The Suite
31 [Documentation] Do test setup initialization.
32
33 REST Power On
34 Delete Error Logs
35
36
37Post Test Case Execution
38 [Documentation] Do the post test teardown.
39 ... 1. Capture FFDC on test failure.
40
41 FFDC On Test Case Fail