Add keyword to get eventlog entry
Changes:
- Added keyword
"Get Redfish Event Log Entries"
Tested:
- Ran successfully
lib/logging_utils.robot
Change-Id: Ia619a8e9cb8bcf6ff85ba0572478476050f84db2
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/logging_utils.robot b/lib/logging_utils.robot
index 0e6a905..20e6901 100644
--- a/lib/logging_utils.robot
+++ b/lib/logging_utils.robot
@@ -379,3 +379,23 @@
Redfish.Patch ${EVENT_LOG_URI}Entries/${bmc_event_id} body={'Resolved':${resolved_flag}}
... valid_status_codes=[${valid_status_code}]
+
+
+Get Redfish Event Log Entries
+ [Documentation] Get the BMC event log entries.
+
+ # URI : /redfish/v1/Systems/system/LogServices/EventLog/Entries
+
+ # Sample event log data
+
+ # '@odata.id': '/redfish/v1/Systems/system/LogServices/EventLog/Entries',
+ # '@odata.type': '#LogEntryCollection.LogEntryCollection',
+ # 'Description': 'Collection of System Event Log Entries',
+ # 'Members': [],
+ # 'Members@odata.count': 0,
+ # 'Name': 'System Event Log Entries'
+
+ ${resp}= Redfish.Get ${EVENT_LOG_URI}Entries
+
+ RETURN ${resp.dict}
+