We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c72925 commit 2b0651dCopy full SHA for 2b0651d
client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/CCRDocumentationIT.java
@@ -559,6 +559,13 @@ public void onFailure(Exception e) {
559
// end::ccr-get-auto-follow-pattern-execute-async
560
561
assertTrue(latch.await(30L, TimeUnit.SECONDS));
562
+
563
+ // Cleanup:
564
+ {
565
+ DeleteAutoFollowPatternRequest deleteRequest = new DeleteAutoFollowPatternRequest("my_pattern");
566
+ AcknowledgedResponse deleteResponse = client.ccr().deleteAutoFollowPattern(deleteRequest, RequestOptions.DEFAULT);
567
+ assertThat(deleteResponse.isAcknowledged(), is(true));
568
+ }
569
}
570
571
static Map<String, Object> toMap(Response response) throws IOException {
0 commit comments