NTP server setting related test case added
Added following test case:
- Verify NTP Server Setting Persist After BMC Reboot.
Change-Id: I2ddb64d8f8282c64a9d2061e716ad942269cb603
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/redfish/managers/test_managers_bmc_time.robot b/redfish/managers/test_managers_bmc_time.robot
index 842509f..54c6a1a 100644
--- a/redfish/managers/test_managers_bmc_time.robot
+++ b/redfish/managers/test_managers_bmc_time.robot
@@ -80,6 +80,21 @@
... msg=NTP primary and secondary server values should not be same.
+Verify NTP Server Setting Persist After BMC Reboot
+ [Documentation] Verify NTP server setting persist after BMC reboot.
+ [Tags] Verify_NTP_Server_Setting_Persist_After_BMC_Reboot
+
+ Redfish.Patch ${REDFISH_NW_PROTOCOL_URI} body={'NTPServers': ['${ntp_server_1}', '${ntp_server_2}']}
+ Redfish OBMC Reboot (off)
+ Redfish.Login
+ ${network_protocol}= Redfish.Get Properties ${REDFISH_NW_PROTOCOL_URI}
+ Should Contain ${network_protocol["NTP"]["NTPServers"]} ${ntp_server_1}
+ ... msg=NTP server value ${ntp_server_1} not stored.
+ Should Contain ${network_protocol["NTP"]["NTPServers"]} ${ntp_server_2}
+ ... msg=NTP server value ${ntp_server_2} not stored.
+ Redfish.Logout
+
+
*** Keywords ***
Test Teardown Execution