From 4b0acb3dfb0d1d5aeae2a0a382fc1969af83bad9 Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Sat, 1 Apr 2023 12:05:46 -0400 Subject: [PATCH] fix for updating version numbers for deprecation messages (tests) (#6919) --- .../client/documentation/IndicesClientDocumentationIT.java | 4 ++-- .../resources/rest-api-spec/test/indices.flush/10_basic.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java b/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java index ad2b0d1e603bb..ad35f2968fbd7 100644 --- a/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/opensearch/client/documentation/IndicesClientDocumentationIT.java @@ -1033,7 +1033,7 @@ public void testSyncedFlushIndex() throws Exception { // tag::flush-synced-execute SyncedFlushResponse flushSyncedResponse = client.indices().flushSynced(request, expectWarnings( - "Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead." + "Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead." )); // end::flush-synced-execute @@ -1079,7 +1079,7 @@ public void onFailure(Exception e) { // tag::flush-synced-execute-async client.indices().flushSyncedAsync(request, expectWarnings( - "Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead." + "Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead." ), listener); // <1> // end::flush-synced-execute-async diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml index 781d133153605..ecd4406f596a5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.flush/10_basic.yml @@ -17,7 +17,7 @@ wait_for_status: green - do: allowed_warnings: - - Synced flush is deprecated and will be removed in 8.0. Use flush at _/flush or /{index}/_flush instead. + - Synced flush is deprecated and will be removed in 3.0. Use flush at _/flush or /{index}/_flush instead. indices.flush_synced: index: testing