File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/test/java/edu/harvard/iq/dataverse/api Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2274,6 +2274,8 @@ public void testDeleteFile() {
22742274 // Check file 2 still in v1.0
22752275 Response v1 = UtilIT .getDatasetVersion (datasetPid , "1.0" , apiToken );
22762276 v1 .prettyPrint ();
2277+ v1 .then ().assertThat ()
2278+ .statusCode (OK .getStatusCode ());
22772279
22782280 Map <String , Object > v1files1 = with (v1 .body ().asString ()).param ("fileToFind" , "cc0.png" )
22792281 .getJsonObject ("data.files.find { files -> files.label == fileToFind }" );
@@ -2286,6 +2288,8 @@ public void testDeleteFile() {
22862288 // Check file 3 still in post v1.0 draft
22872289 Response postv1draft2 = UtilIT .getDatasetVersion (datasetPid , DS_VERSION_DRAFT , apiToken );
22882290 postv1draft2 .prettyPrint ();
2291+ postv1draft2 .then ().assertThat ()
2292+ .statusCode (OK .getStatusCode ());
22892293
22902294 Map <String , Object > v1files2 = with (postv1draft2 .body ().asString ()).param ("fileToFind" , "orcid_16x16.png" )
22912295 .getJsonObject ("data.files.find { files -> files.label == fileToFind }" );
You can’t perform that action at this time.
0 commit comments