Redfish purge EventLog entries
Changes:
- Added keyword to clear event log entries.
Change-Id: I5423398d8e5fe25eb27f1a257d9f2ec7bf3f9430
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/logging_utils.robot b/lib/logging_utils.robot
index f17a376..11b44ba 100644
--- a/lib/logging_utils.robot
+++ b/lib/logging_utils.robot
@@ -200,5 +200,13 @@
# "Name": "System Event Log Entries"
#}
- ${members}= Redfish.Get Attribute ${EVENT_LOG_ENTRY_URI} Members
+ ${members}= Redfish.Get Attribute ${EVENT_LOG_URI}Entries Members
[Return] ${members}
+
+
+Redfish Purge Event Log
+ [Documentation] Do Redfish EventLog purge.
+
+ Redfish.Post ${EVENT_LOG_URI}Actions/LogService.Reset
+ ... valid_status_codes=[${HTTP_NO_CONTENT}]
+