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/data/variables.py b/data/variables.py
index 0de3b63..effd22e 100755
--- a/data/variables.py
+++ b/data/variables.py
@@ -168,7 +168,7 @@
# EventLog variables.
SYSTEM_BASE_URI = REDFISH_BASE_URI + 'Systems/system/'
-EVENT_LOG_ENTRY_URI = SYSTEM_BASE_URI + 'LogServices/EventLog/Entries/'
+EVENT_LOG_URI = SYSTEM_BASE_URI + 'LogServices/EventLog/'
'''
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}]
+