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 27d8e755e97..21015fadf07 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 @@ -1023,12 +1023,14 @@ public class SecurityDocumentationIT extends ESRestHighLevelClientTestCase { RestHighLevelClient client = highLevelClient(); { - // tag::put-role-execute + // tag::put-role-request final Role role = Role.builder() .name("testPutRole") .clusterPrivileges(randomSubsetOf(1, Role.ClusterPrivilegeName.ALL_ARRAY)) .build(); final PutRoleRequest request = new PutRoleRequest(role, RefreshPolicy.NONE); + // end::put-role-request + // tag::put-role-execute final PutRoleResponse response = client.security().putRole(request, RequestOptions.DEFAULT); // end::put-role-execute // tag::put-role-response