Add API to modify resolve flag
Changes:
Add API to modify resolve flag for the event log ID
Tested:
Tested with unit test case on BMC environment
Change-Id: I758ab269cad27caed6bb2df1227ca2835a02632d
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/logging_utils.robot b/lib/logging_utils.robot
index 0059f08..0e6a905 100644
--- a/lib/logging_utils.robot
+++ b/lib/logging_utils.robot
@@ -365,3 +365,17 @@
... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
RETURN ${members}
+
+
+Set Resolve Flag For Event Log
+ [Documentation] Set the resolve flag as True or False and verify the valid status code.
+ [Arguments] ${bmc_event_id} ${resolved_flag} ${valid_status_code}=${HTTP_OK}
+
+ # Description of argument(s):
+ # bmc_event_id BMC event ID.
+ # resolved_flag True or False.
+ # valid_status_code Redfish valid response code.
+ # Default: ${HTTP_OK}
+
+ Redfish.Patch ${EVENT_LOG_URI}Entries/${bmc_event_id} body={'Resolved':${resolved_flag}}
+ ... valid_status_codes=[${valid_status_code}]