From 360ac1997f92e9440f9b6301dad2527d1749e6e2 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Thu, 5 Mar 2020 14:28:44 +0100 Subject: [PATCH] Fix test failures with the new `constant_keyword` field. (#53153) This test failed because YAML tests randomly install an index template that updates the default number of shards to 2. Closes #53131 --- .../rest-api-spec/test/constant_keyword/10_basic.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/constant_keyword/10_basic.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/constant_keyword/10_basic.yml index 0635de2add5..9bd6e409c65 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/constant_keyword/10_basic.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/constant_keyword/10_basic.yml @@ -8,6 +8,8 @@ setup: indices.create: index: test1 body: + settings: + number_of_shards: 1 mappings: properties: foo: @@ -18,6 +20,8 @@ setup: indices.create: index: test2 body: + settings: + number_of_shards: 1 mappings: properties: foo: