Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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\","
Expand All @@ -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)
Expand Down