Added test case to verify BMC dump with watch dog timeout
Changes:
- Added new automation test case 'Verify Core Watchdog Initiated BMC Dump'.
Tested:
- Ran the test case from sandbox successfully.
Change-Id: I21b615766bcf78a4ed33bb94384a30948ecddd3e
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/redfish/managers/test_bmc_dumps.robot b/redfish/managers/test_bmc_dumps.robot
index 0e212b2..c01018a 100644
--- a/redfish/managers/test_bmc_dumps.robot
+++ b/redfish/managers/test_bmc_dumps.robot
@@ -382,6 +382,25 @@
Should Be Equal As Integers ${length} ${1}
+Verify Core Watchdog Initiated BMC Dump
+ [Documentation] Verify core watchdog timeout initiated BMC dump.
+ [Tags] Verify_Core_Watchdog_Initiated_BMC_Dump
+
+ Redfish Delete All BMC Dumps
+ Redfish Power Off stack_mode=skip
+
+ # Trigger watchdog timeout.
+ Redfish Initiate Auto Reboot 2000
+
+ # Wait for BMC dump to get generated after injecting watchdog timeout.
+ Wait Until Keyword Succeeds 4 min 20 sec Is BMC Dump Available
+
+ # Verify that only one BMC dump is available.
+ ${dump_entry_list}= Get BMC Dump Entries
+ ${length}= Get length ${dump_entry_list}
+ Should Be Equal As Integers ${length} ${1}
+
+
*** Keywords ***
Get BMC Dump Entries