Skip to content

Commit

Permalink
keep status checks
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Dec 11, 2024
1 parent e733a2b commit 4c803d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,8 @@ public void testDeleteFile() {
// Check file 2 still in v1.0
Response v1 = UtilIT.getDatasetVersion(datasetPid, "1.0", apiToken);
v1.prettyPrint();
v1.then().assertThat()
.statusCode(OK.getStatusCode());

Map<String, Object> v1files1 = with(v1.body().asString()).param("fileToFind", "cc0.png")
.getJsonObject("data.files.find { files -> files.label == fileToFind }");
Expand All @@ -2286,6 +2288,8 @@ public void testDeleteFile() {
// Check file 3 still in post v1.0 draft
Response postv1draft2 = UtilIT.getDatasetVersion(datasetPid, DS_VERSION_DRAFT, apiToken);
postv1draft2.prettyPrint();
postv1draft2.then().assertThat()
.statusCode(OK.getStatusCode());

Map<String, Object> v1files2 = with(postv1draft2.body().asString()).param("fileToFind", "orcid_16x16.png")
.getJsonObject("data.files.find { files -> files.label == fileToFind }");
Expand Down

0 comments on commit 4c803d2

Please sign in to comment.