This closes Adjusted RegistryClientIT with unique name for Clients
@@ -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()));
