Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 31, 2024
1 parent f13f777 commit 5cb0a91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void testInjectedAdminUser() throws Exception {
Assert.assertTrue(resc.getBody().contains("\"_id\" : \"config\""));
Assert.assertTrue(resc.getBody().contains("\"_id\" : \"roles\""));
Assert.assertTrue(resc.getBody().contains("\"_id\" : \"internalusers\""));
Assert.assertTrue(resc.getBody().contains("\"total\" : 5"));
Assert.assertTrue(resc.getBody().contains("\"total\" : 1"));

resc = rh.executeGetRequest(
".opendistro_security/_search?pretty",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ void validateSearchResponse(RestHelper.HttpResponse response, int expectedHits)
assertThat(searchResponse.status(), is(RestStatus.OK));
assertThat(searchResponse.getHits().getHits().length, is(expectedHits));
assertThat(searchResponse.getFailedShards(), is(0));
assertThat(searchResponse.getSuccessfulShards(), is(5));
}

String permissionExceptionMessage(String action, String username) {
Expand Down

0 comments on commit 5cb0a91

Please sign in to comment.