Power management "PowerCapEnable" disabled by default
Resolves openbmc/openbmc-test-automation#792
Change-Id: Iaad0a0852e90bc10c41b94397dc0b03c5b76676c
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_power_management.robot b/tests/test_power_management.robot
new file mode 100644
index 0000000..d4bfb01
--- /dev/null
+++ b/tests/test_power_management.robot
@@ -0,0 +1,41 @@
+*** Settings ***
+Documentation Power management test module.
+
+Resource ../lib/rest_client.robot
+Resource ../lib/openbmc_ffdc.robot
+Resource ../lib/boot_utils.robot
+
+Suite Setup Setup The Suite
+Test Teardown Post Test Case Execution
+
+*** Test Cases ***
+
+Verify Powercap Disabled By Default
+ [Documentation] Powercap is disabled by default.
+ [Tags] Verify_Powercap_Disabled_By_Default
+
+ # Example:
+ # /xyz/openbmc_project/control/host0/power_cap:
+ # {
+ # "PowerCap": 0,
+ # "PowerCapEnable": 0
+ # },
+
+ ${powercap}= Read Attribute ${CONTROL_HOST_URI}power_cap PowerCapEnable
+ Should Be Equal ${powercap} ${0}
+
+
+*** Keywords ***
+
+Setup The Suite
+ [Documentation] Do test setup initialization.
+
+ REST Power On
+ Delete Error Logs
+
+
+Post Test Case Execution
+ [Documentation] Do the post test teardown.
+ ... 1. Capture FFDC on test failure.
+
+ FFDC On Test Case Fail