Skip to content

Commit

Permalink
Fix inconsistent indentation in RolesMappingApiTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
afazel committed Aug 9, 2021
1 parent e7d6029 commit 53aaf6e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,18 +422,18 @@ public void checkNullElementsInArray() throws Exception{
HttpResponse response = rh.executePutRequest(ENDPOINT + "/rolesmapping/opendistro_security_role_starfleet_captains",
body, new Header[0]);
Assert.assertEquals(HttpStatus.SC_BAD_REQUEST, response.getStatusCode());
Assert.assertTrue(response.getBody().contains("`null` is not allowed as json array element"));
Assert.assertTrue(response.getBody().contains("`null` is not allowed as json array element"));

body = FileHelper.loadFile("restapi/rolesmapping_null_array_element_backend_roles.json");
response = rh.executePutRequest(ENDPOINT + "/rolesmapping/opendistro_security_role_starfleet_captains",
body, new Header[0]);
Assert.assertEquals(HttpStatus.SC_BAD_REQUEST, response.getStatusCode());
Assert.assertTrue(response.getBody().contains("`null` is not allowed as json array element"));
Assert.assertTrue(response.getBody().contains("`null` is not allowed as json array element"));

body = FileHelper.loadFile("restapi/rolesmapping_null_array_element_hosts.json");
response = rh.executePutRequest(ENDPOINT + "/rolesmapping/opendistro_security_role_starfleet_captains",
body, new Header[0]);
Assert.assertEquals(HttpStatus.SC_BAD_REQUEST, response.getStatusCode());
Assert.assertTrue(response.getBody().contains("`null` is not allowed as json array element"));
Assert.assertTrue(response.getBody().contains("`null` is not allowed as json array element"));
}
}

0 comments on commit 53aaf6e

Please sign in to comment.