Added test cases to test auto reboot on host booted system.
Resolves openbmc/openbmc-test-automation#790
Change-Id: I344e993693de03ef53287af45a76990b13489225
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/extended/test_ras.robot b/extended/test_ras.robot
index 4ffc24f..c101abd 100644
--- a/extended/test_ras.robot
+++ b/extended/test_ras.robot
@@ -22,6 +22,39 @@
Verify Checkstop Insertion With Auto Reboot
... Centaur 2011400 4000000000000000
+
+Verify Host Reboot On Host Booted System With Auto Reboot Enabled
+ [Documentation] Verify host reboot after host watchdog error on host
+ ... booted system with auto reboot enabled.
+ [Tags] Verify_Host_Reboot_On_Host_Booted_System_With_Auto_Reboot_Enabled
+
+ Initiate Host Boot
+ Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
+
+ Set Auto Reboot ${1}
+
+ Trigger Host Watchdog Error
+
+ Wait Until Keyword Succeeds 3 min 5 sec Is Host Rebooted
+ Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
+
+
+Verify Host Quiesced On Host Booted System With Auto Reboot Disabled
+ [Documentation] Verify host quiesced state after host watchdog error on
+ ... host booted system with auto reboot disabled.
+ [Tags] Verify_Host_Quiesced_On_Host_Booted_System_With_Auto_Reboot_Disabled
+
+ Initiate Host Boot
+ Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
+
+ Set Auto Reboot ${0}
+
+ Trigger Host Watchdog Error
+
+ Wait Until Keyword Succeeds 3 min 5 sec Is Host Quiesced
+ Recover Quiesced Host
+
+
*** Keywords ***
Inject Checkstop Through OS
[Documentation] Inject checkstop on processor/centaur through OS.