diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java index 519d410fd2e..a8477bc6c94 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java @@ -1068,7 +1068,9 @@ public class SecurityDocumentationIT extends ESRestHighLevelClientTestCase { final GetPrivilegesResponse exptectedResponse = new GetPrivilegesResponse(Arrays.asList(readTestappPrivilege, writeTestappPrivilege, allTestappPrivilege)); assertThat(response, equalTo(exptectedResponse)); + //tag::get-privileges-response Set privileges = response.getPrivileges(); + //end::get-privileges-response for (ApplicationPrivilege privilege : privileges) { assertThat(privilege.getApplication(), equalTo("testapp")); if (privilege.getName().equals("read")) {