Test Case to Disable NTP

    Changes:
        - Added Test Case to Disable NTP

    Tested:
        - Ran and Tested on BMC Environment.

Change-Id: I06f5bdc0f552024f95f2ab2a53535a1a912da071
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 d6575a4..c338853 100644
--- a/redfish/managers/test_bmc_network_protocol.robot
+++ b/redfish/managers/test_bmc_network_protocol.robot
@@ -64,9 +64,6 @@
     [Teardown]  Restore NTP Mode
     [Tags]  Verify_Enable_NTP
 
-    ${original_ntp}=  Redfish.Get Attribute  ${REDFISH_NW_PROTOCOL_URI}  NTP
-    Set Suite Variable  ${original_ntp}
-    Rprint Vars  original_ntp
     # The following patch command should set the ["NTP"]["ProtocolEnabled"] property to "True".
     Redfish.Patch  ${REDFISH_NW_PROTOCOL_URI}  body={'NTP':{'ProtocolEnabled': ${True}}}
     ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
@@ -76,6 +73,19 @@
     Rprint Vars  ntp
     Valid Value  ntp["ProtocolEnabled"]  valid_values=[True]
 
+Verify Disble NTP
+    [Documentation]  Verify NTP protocol mode can be disabled.
+    [Teardown]  Restore NTP Mode
+    [Tags]  Verify_Disable_NTP
+
+    # The following patch command should set the ["NTP"]["ProtocolEnabled"] property to "False".
+    Redfish.Patch  ${REDFISH_NW_PROTOCOL_URI}  body={'NTP':{'ProtocolEnabled': ${False}}}
+    ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
+    Wait Until Keyword Succeeds  1 min  5 sec
+    ...  Verify System Time Sync Status  ${False}
+    ${ntp}=  Redfish.Get Attribute  ${REDFISH_NW_PROTOCOL_URI}  NTP
+    Rprint Vars  ntp
+    Valid Value  ntp["ProtocolEnabled"]  valid_values=[False]
 
 Verify Set DateTime With NTP Enabled
     [Documentation]  Verify whether set managers dateTime is restricted with NTP enabled.
@@ -89,7 +99,6 @@
     Redfish Set DateTime  ${local_system_time}
     ...  valid_status_codes=[${HTTP_BAD_REQUEST}, ${HTTP_INTERNAL_SERVER_ERROR}]
 
-
 *** Keywords ***
 
 
@@ -104,7 +113,6 @@
     Run Keyword If  ${year_status} == False
     ...  Enable NTP And Add NTP Address
 
-
 Suite Teardown Execution
     [Documentation]  Do the suite level teardown.