Add missing tag for get-privileges Docs

This commit is contained in:
Ioannis Kakavas 2018-11-21 17:05:30 +02:00
parent 25f83ae08c
commit 3c466d29d9
1 changed files with 2 additions and 0 deletions

View File

@ -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<ApplicationPrivilege> privileges = response.getPrivileges();
//end::get-privileges-response
for (ApplicationPrivilege privilege : privileges) {
assertThat(privilege.getApplication(), equalTo("testapp"));
if (privilege.getName().equals("read")) {