Skip to content

Commit

Permalink
IQSS#7906 add integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed May 27, 2021
1 parent 77883e3 commit 9a6e5d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/java/edu/harvard/iq/dataverse/api/AdminIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,15 @@ public void testListAuthenticatedUsers() throws Exception {

Response deleteNonSuperuser = UtilIT.deleteUser(nonSuperuserUsername);
assertEquals(200, deleteNonSuperuser.getStatusCode());
assertEquals(
"{\"status\":\"OK\",\"data\":{\"message\":\"AuthenticatedUser @" + nonSuperuserUsername + " deleted.\"}}",
deleteNonSuperuser.getBody().asString());

Response deleteSuperuser = UtilIT.deleteUser(superuserUsername);
assertEquals(200, deleteSuperuser.getStatusCode());

assertEquals(
"{\"status\":\"OK\",\"data\":{\"message\":\"AuthenticatedUser @" + superuserUsername + " deleted.\"}}",
deleteSuperuser.getBody().asString());
}


Expand Down

0 comments on commit 9a6e5d9

Please sign in to comment.