Add missing tag for get-privileges Docs
This commit is contained in:
parent
25f83ae08c
commit
3c466d29d9
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue