Update Event log clear request target
Changes -
New implementation available target LogService.ClearLog
Change-Id: I16275a3dd27e0a584ef138492a2236da8705b8d4
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/logging_utils.robot b/lib/logging_utils.robot
index c9266ff..484c8de 100644
--- a/lib/logging_utils.robot
+++ b/lib/logging_utils.robot
@@ -223,5 +223,8 @@
Redfish Purge Event Log
[Documentation] Do Redfish EventLog purge.
- Redfish.Post ${EVENT_LOG_URI}Actions/LogService.Reset
- ... valid_status_codes=[${HTTP_NO_CONTENT}]
+ ${target_action}= redfish_utils.Get Target Actions
+ ... /redfish/v1/Systems/system/LogServices/EventLog/ LogService.ClearLog
+ Redfish.Post ${target_action} body={'target': '${target_action}'}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
+