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}]
diff --git a/redfish/systems/eventlog/test_event_logging.robot b/redfish/systems/eventlog/test_event_logging.robot
index 4853151..5d18ffe 100644
--- a/redfish/systems/eventlog/test_event_logging.robot
+++ b/redfish/systems/eventlog/test_event_logging.robot
@@ -191,7 +191,6 @@
     Should Be True  ${time_stamp2} > ${time_stamp1}
 
 
-# TODO: openbmc/openbmc-test-automation#1789
 Verify Setting Error Log As Resolved
     [Documentation]  Verify modified field of error log is updated when error log is marked resolved.
     [Tags]  Verify_Setting_Error_Log_As_Resolved