Skip to content

Commit

Permalink
Fixed: failing tests after develop merge
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Oct 13, 2023
1 parent 61712db commit 12ba35e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/edu/harvard/iq/dataverse/api/DatasetsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -3622,8 +3622,7 @@ public void getVersionFileCounts() throws IOException, InterruptedException {
assertEquals(1, responseCountPerAccessStatusMap.get(FileSearchCriteria.FileAccessStatus.EmbargoedThenPublic.toString()));

// Test content type criteria
getVersionFileCountsResponse = UtilIT.getVersionFileCounts(datasetId, DS_VERSION_LATEST_PUBLISHED, "image/png", null, null, null, null, false, apiToken);

getVersionFileCountsResponse = UtilIT.getVersionFileCounts(datasetId, DS_VERSION_LATEST, "image/png", null, null, null, null, false, apiToken);
getVersionFileCountsResponse.then().assertThat().statusCode(OK.getStatusCode());

responseJsonPath = getVersionFileCountsResponse.jsonPath();
Expand Down Expand Up @@ -3760,7 +3759,7 @@ public void getVersionFileCounts() throws IOException, InterruptedException {
getVersionFileCountsResponseDeaccessioned.then().assertThat().statusCode(OK.getStatusCode());

responseJsonPath = getVersionFileCountsResponseDeaccessioned.jsonPath();
assertEquals(4, (Integer) responseJsonPath.get("data.total"));
assertEquals(5, (Integer) responseJsonPath.get("data.total"));

// Test that the dataset file counts for a deaccessioned dataset cannot be accessed by a guest
// By latest published version
Expand Down

0 comments on commit 12ba35e

Please sign in to comment.