From 3c466d29d9d745cf8c81b9a005315332be1eb378 Mon Sep 17 00:00:00 2001 From: Ioannis Kakavas Date: Wed, 21 Nov 2018 17:05:30 +0200 Subject: [PATCH] Add missing tag for get-privileges Docs --- .../client/documentation/SecurityDocumentationIT.java | 2 ++ 1 file changed, 2 insertions(+) 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")) {