From 54da3d53d4362d22b22ee5a87d780c62cccca2dd Mon Sep 17 00:00:00 2001 From: Artem Prigoda Date: Tue, 2 Nov 2021 11:53:01 +0100 Subject: [PATCH] Allow deprecation warning for the return_200_for_cluster_health_timeout parameter It will be deprecated in #78968, but first we need to backport the allow_warning change to 7.16 and 8.0 in order to not break BWC --- .../rest-api-spec/test/cluster.health/20_request_timeout.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.health/20_request_timeout.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.health/20_request_timeout.yml index 74261d799ba7d..16d943332dc26 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.health/20_request_timeout.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.health/20_request_timeout.yml @@ -41,7 +41,10 @@ - skip: version: " - 7.15.99" reason: "return_200_for_cluster_health_timeout was added in 7.16" + features: [ "allowed_warnings" ] - do: + allowed_warnings: + - 'the [return_200_for_cluster_health_timeout] parameter is deprecated and will be removed in a future release.' cluster.health: timeout: 1ms wait_for_active_shards: 5