This is an automated email from the ASF dual-hosted git repository.

joewitt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new e264f1fd77 NIFI-11097 This closes #6890. Adjusted RegistryClientIT 
with unique name for Clients
e264f1fd77 is described below

commit e264f1fd7723a0913a3337ff32db104821ce22e8
Author: exceptionfactory <exceptionfact...@apache.org>
AuthorDate: Wed Jan 25 17:48:53 2023 -0600

    NIFI-11097 This closes #6890. Adjusted RegistryClientIT with unique name 
for Clients
    
    Signed-off-by: Joe Witt <joew...@apache.org>
---
 .../java/org/apache/nifi/tests/system/registry/RegistryClientIT.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/registry/RegistryClientIT.java
 
b/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/registry/RegistryClientIT.java
index 5f17db36f5..9d9334951e 100644
--- 
a/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/registry/RegistryClientIT.java
+++ 
b/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/registry/RegistryClientIT.java
@@ -38,6 +38,7 @@ import java.io.IOException;
 import java.nio.file.Files;
 import java.util.Collections;
 import java.util.Set;
+import java.util.UUID;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotEquals;
@@ -67,7 +68,8 @@ public class RegistryClientIT extends NiFiSystemIT {
     }
 
     private FlowRegistryClientEntity registerClient() throws 
NiFiClientException, IOException {
-        final FlowRegistryClientEntity clientEntity = 
getClientUtil().createFlowRegistryClient("FileRegistry");
+        final String clientName = String.format("FileRegistry-%s", 
UUID.randomUUID());
+        final FlowRegistryClientEntity clientEntity = 
getClientUtil().createFlowRegistryClient(clientName);
         final File storageDir = new File("target/flowRegistryStorage/" + 
getTestName().replace("\\(.*?\\)", ""));
         Files.createDirectories(storageDir.toPath());
         getClientUtil().updateRegistryClientProperties(clientEntity, 
Collections.singletonMap("Directory", storageDir.getAbsolutePath()));

Reply via email to