diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceIntegTests.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceIntegTests.java index 3244dda91e002..216031ca42d43 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceIntegTests.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceIntegTests.java @@ -151,8 +151,8 @@ public void testCrossClusterAccessWithInvalidRoleDescriptors() { assertThat( actual.getMessage(), equalTo( - "Role descriptor for cross cluster access can only contain index and " + - "cluster privileges but other privileges found for subject [" + "Role descriptor for cross cluster access can only contain index and " + + "cluster privileges but other privileges found for subject [" + expectedPrincipal + "]" )