Changed setting of manual mode to Redfish from Rest
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
Change-Id: I2ab3ddf43cbbbfa5dda7c7b481d280b0d081c01e
diff --git a/redfish/managers/test_managers_bmc_time.robot b/redfish/managers/test_managers_bmc_time.robot
index 6c78139..6476c04 100644
--- a/redfish/managers/test_managers_bmc_time.robot
+++ b/redfish/managers/test_managers_bmc_time.robot
@@ -216,10 +216,10 @@
Set Time To Manual Mode
- [Documentation] Set date time to manual mode via REST.
+ [Documentation] Set date time to manual mode via Redfish.
- ${data}= Create Dictionary data=${MANUAL_MODE}
- Write Attribute ${TIME_MANAGER_URI}sync_method TimeSyncMethod data=${data} verify=${TRUE}
+ Redfish.Patch ${REDFISH_NW_PROTOCOL_URI} body={'NTP':{'ProtocolEnabled': ${False}}}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
Restore NTP Mode
@@ -240,7 +240,6 @@
Redfish.Login
Get NTP Initial Status
Set Time To Manual Mode
- Set NTP state ${FALSE}
Suite Teardown Execution