Power and restore migration to redfish
Change-Id: I9b14a15ec914f31ce6a9ee369666196cc6fe7838
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_power_restore.robot b/redfish/extended/test_power_restore.robot
similarity index 93%
rename from tests/test_power_restore.robot
rename to redfish/extended/test_power_restore.robot
index 128f7a6..913002e 100644
--- a/tests/test_power_restore.robot
+++ b/redfish/extended/test_power_restore.robot
@@ -4,14 +4,12 @@
... Refer here for documentation on the REST interfaces
... https://github.com/openbmc/docs/blob/master/rest-api.md
-Resource ../lib/rest_client.robot
-Resource ../lib/utils.robot
-Resource ../lib/openbmc_ffdc.robot
-Resource ../lib/state_manager.robot
-Library ../lib/state_map.py
-
-
-Library SSHLibrary
+Resource ../../lib/rest_client.robot
+Resource ../../lib/utils.robot
+Resource ../../lib/openbmc_ffdc.robot
+Resource ../../lib/state_manager.robot
+Resource ../../lib/boot_utils.robot
+Library ../../lib/state_map.py
Test Teardown Test Teardown Execution
Suite Teardown Suite Teardown Execution
@@ -120,7 +118,7 @@
Set Initial Test State ${expectedState}
- Initiate BMC Reboot
+ Redfish Power Operation reset_type=GracefulRestart
Wait Until Keyword Succeeds
... 10 min 10 sec Valid Boot States ${nextState}
@@ -147,10 +145,10 @@
# expectedState Test initial host state.
Run Keyword If '${expectedState}' == 'Running'
- ... Initiate Host Boot
+ ... Redfish Power On
Run Keyword If '${expectedState}' == 'Off'
- ... Initiate Host PowerOff
+ ... Redfish Power Off
Test Teardown Execution