Code to get all dump and to check no dump exist
Changes:
- Added keyword "Get Redfish BMC Dump Log Entries"
"Redfish BMC Dump Should Not Exist"
Tested:
- Ran successfully
Get Redfish BMC Dump Log Entries,
Redfish BMC Dump Should Not Exist
Change-Id: I73c4108b5bf76f2841d141d93f96b4a6e57b1143
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/dump_utils.robot b/lib/dump_utils.robot
index 0db9d40..62d1a72 100644
--- a/lib/dump_utils.robot
+++ b/lib/dump_utils.robot
@@ -2,6 +2,7 @@
Documentation This module provides general keywords for dump.
Library bmc_ssh_utils.py
+Variables ../data/variables.py
*** Variables ***
@@ -174,12 +175,28 @@
Redfish.Post /redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.ClearLog
+Get Redfish BMC Dump Log Entries
+ [Documentation] Get the BMC dump log entries.
+
+ ${resp}= Redfish.Get ${REDFISH_DUMP_URI}
+
+ [Return] ${resp.dict}
+
+
Redfish Delete All System Dumps
[Documentation] Delete all system dumps via Redfish.
Redfish.Post /redfish/v1/Systems/system/LogServices/Dump/Actions/LogService.ClearLog
+Redfish BMC Dump Should Not Exist
+ [Documentation] Verify that there is no BMC dump at dump URI.
+
+ # Verify no dump exists.
+ ${dump_entries}= Get Redfish BMC Dump Log Entries
+ Should Be Equal As Integers 0 ${dump_entries['Members@odata.count']}
+
+
Delete All BMC Dump
[Documentation] Delete all BMC dump entries using "DeleteAll" interface.
@@ -438,7 +455,7 @@
END
Get Dump Status In BMC
- [Documentation] Get dump status from BMC using busctl method.
+ [Documentation] Get dump status from BMC using busctl method.
[Arguments] ${dump_uri}
# Description of argument(s):