Skip to content

Commit

Permalink
assert 500 error when invalid query params are passed #9275
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin authored and stevenwinship committed Jan 22, 2024
1 parent ce6234a commit 6f3aee4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,16 @@ public void testMultiRecordOaiSet() throws InterruptedException {
logger.info("deleteResponse.getStatusCode(): " + deleteResponse.getStatusCode());
assertEquals(200, deleteResponse.getStatusCode(), "Failed to delete the control multi-record set");
}


@Test
public void testInvalidQueryParams() {
// "foo" is not a valid verb
String oaiVerbPath = "/oai?foo=bar";
Response identifyResponse = given().get(oaiVerbPath);
// TODO Why is this 500? https://github.com/IQSS/dataverse/issues/9275
identifyResponse.then().assertThat().statusCode(500);
}

// TODO:
// What else can we test?
// Some ideas:
Expand Down

0 comments on commit 6f3aee4

Please sign in to comment.