BMC dump persistency check
Added:
- Restart BMC dump service and verify
- Reset BMC and verify
Rsolves openbmc/openbmc-test-automation#940
Change-Id: I0bff03d38db346c21bfc24f78eb51d11edc5dbd6
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_bmc_dump.robot b/tests/test_bmc_dump.robot
index b994124..0d713fe 100644
--- a/tests/test_bmc_dump.robot
+++ b/tests/test_bmc_dump.robot
@@ -5,6 +5,8 @@
Resource ../lib/openbmc_ffdc.robot
Resource ../lib/rest_client.robot
Resource ../lib/dump_utils.robot
+Resource ../lib/boot_utils.robot
+Library ../lib/bmc_ssh_utils.py
Test Setup Open Connection And Log In
Test Teardown Post Testcase Execution
@@ -22,6 +24,32 @@
Create User Initiated Dump
+Verify Dump Persistency On Service Restart
+ [Documentation] Create user dump, restart BMC service and verify dump
+ ... persistency.
+ [Tags] Verify_Dump_Persistency_On_Service_Restart
+
+ Delete All Dumps
+ Create User Initiated Dump
+ BMC Execute Command
+ ... systemctl restart xyz.openbmc_project.Dump.Manager.service
+ Sleep 10s reason=Wait for BMC dump service to restart properly.
+
+ ${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}/list
+ Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
+
+
+Verify Dump Persistency On Reset
+ [Documentation] Create user dump, reset BMC and verify dump persistency.
+ [Tags] Verify_Dump_Persistency_On_Reset
+
+ Delete All Dumps
+ Create User Initiated Dump
+ OBMC Reboot (off)
+ ${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}/list
+ Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
+
+
Delete User Initiated BMC Dump And Verify
[Documentation] Delete user initiated dump and verify.
[Tags] Delete_User_Initiated_Dump_And_Verify