Test to verify IPMI chassis power restore policy settings.
TC verifies whether the change of power policy setting through REST API
is reflected in the IPMI chassis status power restore policy settings.
Change-Id: If51c531660c2a3f0771e53c5ba00faec9466a15c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/extended/test_power_restore.robot b/extended/test_power_restore.robot
index 38da2c6..87df8c0 100644
--- a/extended/test_power_restore.robot
+++ b/extended/test_power_restore.robot
@@ -17,7 +17,7 @@
Force Tags chassisboot bmcreboot
*** Variables ***
-${HOST_SETTING} ${OPENBMC_BASE_URI}settings/host0
+${HOST_SETTING} ${SETTINGS_URI}host0
*** Test Cases ***
@@ -48,7 +48,7 @@
Set Restore Policy
[Arguments] ${policy} ${expectedState} ${nextState}
- Set Policy Setting ${policy}
+ Set BMC Power Policy ${policy}
${currentState}=
... Read Attribute ${HOST_SETTING} system_state
@@ -70,16 +70,6 @@
... 5 min 10 sec System State ${nextState}
-Set Policy Setting
- [Documentation] Set the given test policy
- [Arguments] ${policy}
-
- ${valueDict}= create dictionary data=${policy}
- Write Attribute ${HOST_SETTING} power_policy data=${valueDict}
- ${currentPolicy}= Read Attribute ${HOST_SETTING} power_policy
- Should Be Equal ${currentPolicy} ${policy}
-
-
Set Initial Test State
[Documentation] Poweron if ON expected, Poweroff if OFF expected
... to initial state of the test.