From 53aaf6e577ddbdccd2d80bc9f497fa2e28f0b0d6 Mon Sep 17 00:00:00 2001 From: Azar Fazel Date: Fri, 6 Aug 2021 11:48:42 -0700 Subject: [PATCH] Fix inconsistent indentation in RolesMappingApiTest.java --- .../security/dlic/rest/api/RolesMappingApiTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/opensearch/security/dlic/rest/api/RolesMappingApiTest.java b/src/test/java/org/opensearch/security/dlic/rest/api/RolesMappingApiTest.java index b50e386bf5..17a7453070 100644 --- a/src/test/java/org/opensearch/security/dlic/rest/api/RolesMappingApiTest.java +++ b/src/test/java/org/opensearch/security/dlic/rest/api/RolesMappingApiTest.java @@ -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")); } }