From 30c88e7e0412a02b3cc999dcd26f7a0aadafb085 Mon Sep 17 00:00:00 2001 From: Rabi Panda Date: Tue, 23 Mar 2021 16:39:26 -0700 Subject: [PATCH] Fix failing rest-api-spec tests as part of renaming. (#451) This commit fixes the following two failing yaml tests in rest-api-spec. - indices.create/10_basic/Create index without soft deletes - indices.stats/20_translog/Translog stats on closed indices without soft-deletes Signed-off-by: Rabi Panda --- .../resources/rest-api-spec/test/indices.create/10_basic.yml | 2 +- .../rest-api-spec/test/indices.stats/20_translog.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml index cab825734f6..2fd77b90aa1 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml @@ -164,7 +164,7 @@ - do: warnings: - - Creating indices with soft-deletes disabled is deprecated and will be removed in future Elasticsearch versions. + - Creating indices with soft-deletes disabled is deprecated and will be removed in future OpenSearch versions. Please do not specify value for setting [index.soft_deletes.enabled] of index [test_index]. indices.create: index: test_index diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml index f6dfdd7b2d0..b4c8aebfec7 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml @@ -12,7 +12,7 @@ settings: soft_deletes.enabled: false warnings: - - Creating indices with soft-deletes disabled is deprecated and will be removed in future Elasticsearch versions. + - Creating indices with soft-deletes disabled is deprecated and will be removed in future OpenSearch versions. Please do not specify value for setting [index.soft_deletes.enabled] of index [test]. - do: cluster.health: @@ -193,7 +193,7 @@ soft_deletes.enabled: false routing.rebalance.enable: "none" # prevents shard relocations while we are closing an index warnings: - - Creating indices with soft-deletes disabled is deprecated and will be removed in future Elasticsearch versions. + - Creating indices with soft-deletes disabled is deprecated and will be removed in future OpenSearch versions. Please do not specify value for setting [index.soft_deletes.enabled] of index [test]. - do: