Add redfish event log filter keyword
Changes:
- New keyword to filter event log
Tested: - Tested on sandbox test sample code
Change-Id: I6bb911d023fcbf0514a48d513c17e8cb2d2cc8b0
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/logging_utils.robot b/lib/logging_utils.robot
index 9bb9821..b2bb56c 100644
--- a/lib/logging_utils.robot
+++ b/lib/logging_utils.robot
@@ -20,6 +20,20 @@
*** Keywords ***
+Filter Expected Logging Events
+ [Documentation] Get redfish logging entry, remove the user input expected
+ ... log event and return the object list.
+ [Arguments] ${expected_event}=None
+
+ # Description of argument(s):
+ # expected_eventd Event log list.
+
+ ${all_event_list}= Get Redfish Event Logs
+ Remove Values From List ${all_event_list} ${expected_event}
+
+ [Return] ${all_event_list}
+
+
Get Logging Entry List
[Documentation] Get logging entry and return the object list.