pvillard31 commented on code in PR #11684:
URL: https://github.com/apache/nifi/pull/11684#discussion_r4228668769


##########
nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/registry/RegistryClientIT.java:
##########
@@ -364,6 +377,24 @@ public void testStartVersionControlThenModifyAndRevert() 
throws NiFiClientExcept
         assertEquals("UP_TO_DATE", versionedFlowState);
     }
 
+    @Test
+    public void testVersionControlledProcessGroupSynchronizesAfterRestart() 
throws Exception {
+        final FlowRegistryClientEntity registryClient = registerClient();
+        final ProcessGroupEntity processGroup = 
getClientUtil().createProcessGroup("Versioned Process Group", "root");
+        getClientUtil().createProcessor("TerminateFlowFile", 
processGroup.getId());
+        getClientUtil().startVersionControl(processGroup, registryClient, 
TEST_FLOWS_BUCKET, "restart-flow");
+
+        assertEquals(VersionControlInformationDTO.UP_TO_DATE, 
getClientUtil().getVersionControlState(processGroup.getId()));
+
+        getClientUtil().updateRegistryClientProperties(registryClient, 
Collections.singletonMap("Validate Sleep Time", "15 sec"));
+
+        getNiFiInstance().stop();
+        getNiFiInstance().start();
+        setupClient();

Review Comment:
   True. Addressed. Thanks @markap14 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to