Add NTP test case

    Changes: Adding NTP test case to check the
    NetworkSuppliedServers has only the DHCP server list.

    Tested: Ran and tested on BMC environment.

Static NTP server must not get populated in NetworkSuppliedServers

Change-Id: Ic60320178dbcd433266749738e41df186ce47841
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/redfish/managers/test_bmc_network_protocol.robot b/redfish/managers/test_bmc_network_protocol.robot
index 61fb9c5..bbcabe2 100644
--- a/redfish/managers/test_bmc_network_protocol.robot
+++ b/redfish/managers/test_bmc_network_protocol.robot
@@ -99,8 +99,28 @@
     Redfish Set DateTime  ${local_system_time}
     ...  valid_status_codes=[${HTTP_BAD_REQUEST}, ${HTTP_INTERNAL_SERVER_ERROR}]
 
-*** Keywords ***
+Verify NTP Server Is Not Populated In NetworkSuppliedServers
+    [Documentation]  Patch NTP server and verify NTP servers is not populated
+    ...  in NetworkSuppliedServers.
+    [Tags]  Verify_NTP_Server_Is_Not_Populated_In_NetworkSupppliedServers
+    [Setup]  Set NTP state  ${True}
 
+    Redfish.Patch  ${REDFISH_NW_PROTOCOL_URI}
+    ...  body={'NTP':{'NTPServers': ['${ntp_server_1}']}}
+    ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
+
+    # Verify the NTP server is populated in NTPServers.
+    ${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.
+
+    # Checking whether added NTP server is not populated in
+    # ...  NetworkSuppliedServers as it has only DHCP NTP server list.
+    ${network_protocol}=  Redfish.Get Properties  ${REDFISH_NW_PROTOCOL_URI}
+    Should Not Contain  ${network_protocol["NTP"]["NetworkSuppliedServers"]}  ${ntp_server_1}
+    ...  msg=Static NTP server is coming up in NetworkSuppliedServers.
+
+*** Keywords ***
 
 Suite Setup Execution
     [Documentation]  Do the suite level setup.