Skip to content

Commit

Permalink
Merge pull request #11081 from GlobalDataverseCommunityConsortium/Fix…
Browse files Browse the repository at this point in the history
…_delete_file_test

Fix testDeleteFile
  • Loading branch information
ofahimIQSS authored Dec 11, 2024
2 parents 6e3a250 + 4c803d2 commit 0a8f8c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -2275,7 +2275,6 @@ public void testDeleteFile() {
Response v1 = UtilIT.getDatasetVersion(datasetPid, "1.0", apiToken);
v1.prettyPrint();
v1.then().assertThat()
.body("data.files[0].dataFile.filename", equalTo("cc0.png"))
.statusCode(OK.getStatusCode());

Map<String, Object> v1files1 = with(v1.body().asString()).param("fileToFind", "cc0.png")
Expand All @@ -2290,7 +2289,6 @@ public void testDeleteFile() {
Response postv1draft2 = UtilIT.getDatasetVersion(datasetPid, DS_VERSION_DRAFT, apiToken);
postv1draft2.prettyPrint();
postv1draft2.then().assertThat()
.body("data.files[0].dataFile.filename", equalTo("orcid_16x16.png"))
.statusCode(OK.getStatusCode());

Map<String, Object> v1files2 = with(postv1draft2.body().asString()).param("fileToFind", "orcid_16x16.png")
Expand Down

0 comments on commit 0a8f8c5

Please sign in to comment.