Add Tags and split tests cases
Resolves openbmc/openbmc-test-automation#576
Change-Id: I26010c319e5e62fa02ebef1522a58a8599e83a80
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_power_restore.robot b/tests/test_power_restore.robot
index 137fea1..42ad923 100644
--- a/tests/test_power_restore.robot
+++ b/tests/test_power_restore.robot
@@ -21,11 +21,10 @@
*** Test Cases ***
-Test Restore Policy LEAVE_OFF
- #Policy Initial Host State Expected Host State
+Test Restore Policy LEAVE_OFF With Host Off
+ # Policy Initial Host State Expected Host State
- LEAVE_OFF Off Off
- LEAVE_OFF Running Off
+ LEAVE_OFF Off Off
[Documentation] Validate LEAVE_OFF restore policy functionality.
... Policy:
@@ -38,13 +37,22 @@
... specific state.
[Template] Verify Restore Policy
+ [Tags] Test_Restore_Policy_LEAVE_OFF_With_Host_Off
-Test Restore Policy ALWAYS_POWER_ON
- #Policy Initial Host State Expected Host State
+Test Restore Policy LEAVE_OFF With Host Running
+ # Policy Initial Host State Expected Host State
- ALWAYS_POWER_ON Off Running
- ALWAYS_POWER_ON Running Running
+ LEAVE_OFF Running Off
+
+ [Template] Verify Restore Policy
+ [Tags] Test_Restore_Policy_LEAVE_OFF_With_Host_Running
+
+
+Test Restore Policy ALWAYS_POWER_ON With Host Off
+ # Policy Initial Host State Expected Host State
+
+ ALWAYS_POWER_ON Off Running
[Documentation] Validate ALWAYS_POWER_ON restore policy functionality.
... Policy:
@@ -57,13 +65,22 @@
... specific state.
[Template] Verify Restore Policy
+ [Tags] Test_Restore_Policy_ALWAYS_POWER_ON_With_Host_Off
-Test Restore Policy RESTORE_LAST_STATE
- #Policy Initial Host State Expected Host State
+Test Restore Policy ALWAYS_POWER_ON With Host Running
+ # Policy Initial Host State Expected Host State
- RESTORE_LAST_STATE Running Running
- RESTORE_LAST_STATE Off Off
+ ALWAYS_POWER_ON Running Running
+
+ [Template] Verify Restore Policy
+ [Tags] Test_Restore_Policy_ALWAYS_POWER_ON_With_Host_Running
+
+
+Test Restore Policy RESTORE_LAST_STATE With Host Running
+ # Policy Initial Host State Expected Host State
+
+ RESTORE_LAST_STATE Running Running
[Documentation] Validate RESTORE_LAST_STATE restore policy functionality.
... Policy:
@@ -76,6 +93,18 @@
... specific state.
[Template] Verify Restore Policy
+ [Tags] Test_Restore_Policy_RESTORE_LAST_STATE_With_Host_Running
+
+
+Test Restore Policy RESTORE_LAST_STATE With Host Off
+ # Policy Initial Host State Expected Host State
+
+ RESTORE_LAST_STATE Off Off
+
+
+ [Template] Verify Restore Policy
+ [Tags] Test_Restore_Policy_RESTORE_LAST_STATE_With_Host_Off
+
*** Keywords ***