Skip to content

Commit f5ef248

Browse files
authored
HLRC: Fix the tags to be in sync with docs. (#34501)
Correct the tags mapping with the documentation. This was added in #34171
1 parent a4c3020 commit f5ef248

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void testPutRoleMapping() throws Exception {
122122
.build();
123123
final PutRoleMappingRequest request = new PutRoleMappingRequest("mapping-example", true, Collections.singletonList("superuser"),
124124
rules, null, RefreshPolicy.NONE);
125-
// tag::put-role-mapping-execute-async
125+
// tag::put-role-mapping-execute-listener
126126
ActionListener<PutRoleMappingResponse> listener = new ActionListener<PutRoleMappingResponse>() {
127127
@Override
128128
public void onResponse(PutRoleMappingResponse response) {
@@ -134,15 +134,15 @@ public void onFailure(Exception e) {
134134
// <2>
135135
}
136136
};
137-
// end::put-role-mapping-execute-async
137+
// end::put-role-mapping-execute-listener
138138

139139
// Replace the empty listener by a blocking listener in test
140140
final CountDownLatch latch = new CountDownLatch(1);
141141
listener = new LatchedActionListener<>(listener, latch);
142142

143-
// tag::put-role-mapping-execute-listener
143+
// tag::put-role-mapping-execute-async
144144
client.security().putRoleMappingAsync(request, RequestOptions.DEFAULT, listener); // <1>
145-
// end::put-role-mapping-execute-listener
145+
// end::put-role-mapping-execute-async
146146

147147
assertTrue(latch.await(30L, TimeUnit.SECONDS));
148148
}

0 commit comments

Comments
 (0)