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()));