diff --git a/src/test/java/edu/harvard/iq/dataverse/api/HarvestingClientsIT.java b/src/test/java/edu/harvard/iq/dataverse/api/HarvestingClientsIT.java index 4699e741094..a470bd8fb27 100644 --- a/src/test/java/edu/harvard/iq/dataverse/api/HarvestingClientsIT.java +++ b/src/test/java/edu/harvard/iq/dataverse/api/HarvestingClientsIT.java @@ -75,11 +75,11 @@ private static void setupCollection() { } @Test - public void testCreateEditDeleteClient() { + public void testCreateEditDeleteClient() throws InterruptedException { // This method focuses on testing the native Dataverse harvesting client // API. - String nickName = UtilIT.getRandomString(6); + String nickName = "h" + UtilIT.getRandomString(6); String clientApiPath = String.format(HARVEST_CLIENTS_API+"%s", nickName); @@ -166,7 +166,7 @@ public void testHarvestingClientRun() throws InterruptedException { // method, we don't need to pay too much attention to this method, aside // from confirming the expected HTTP status code. - String nickName = UtilIT.getRandomString(6); + String nickName = "h" + UtilIT.getRandomString(6); String clientApiPath = String.format(HARVEST_CLIENTS_API+"%s", nickName); String clientJson = String.format("{\"dataverseAlias\":\"%s\"," @@ -176,7 +176,7 @@ public void testHarvestingClientRun() throws InterruptedException { + "\"set\":\"%s\"," + "\"metadataFormat\":\"%s\"}", harvestCollectionAlias, HARVEST_URL, ARCHIVE_URL, CONTROL_OAI_SET, HARVEST_METADATA_FORMAT); - + Response createResponse = given() .header(UtilIT.API_TOKEN_HTTP_HEADER, adminUserAPIKey) .body(clientJson)