Fix for the TPO test suite
Changes:
- Added new keyword Set Power Policy For TPO
Tested:
- Ran testcase successfully from sandbox
Change-Id: I4b82d3c3e2602e20b380c2852fc47ad172c980af
Signed-off-by: dnirmala <dhurgam.nirmala1@ibm.com>
diff --git a/openpower/test_timed_power_on.robot b/openpower/test_timed_power_on.robot
index 71388c0..0fe7517 100644
--- a/openpower/test_timed_power_on.robot
+++ b/openpower/test_timed_power_on.robot
@@ -109,6 +109,19 @@
[Documentation] Do test case setup tasks.
Redfish.Login
+ Set Power Policy For TPO Automatic
+
+
+Set Power Policy For TPO
+ [Documentation] Change 'server power policy' option to automatic.
+ [Arguments] ${power_policy_mode}
+
+ # Description of argument(s):
+ # power_policy_mode BIOS attribute value. E.g. "Stay On", "Automatic".
+
+ Redfish.Patch /redfish/v1/Systems/system/Bios/Settings
+ ... body={"Attributes":{"pvm_system_power_off_policy": "${power_policy_mode}"}}
+ ... valid_status_codes=[${HTTP_OK}]
Test Teardown Execution