From d48870ef941910292e5e133476b598aa46d35e82 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 24 Feb 2020 16:12:53 -0500 Subject: [PATCH] Try to fix test another way..... Explictly create the index rather than skip adding the default template.... --- .../test/analytics/top_metrics.yml | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml index 34a12ee8e00..5f6b931e724 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml @@ -156,9 +156,12 @@ --- "sort by keyword field fails": - - skip: - features: default_shards - reason: The failure message isn't predictable with more than one shard + - do: + indices.create: + index: test + body: + settings: + number_of_shards: 1 # The failure message isn't predictable with more than one shard - do: bulk: @@ -183,9 +186,13 @@ --- "sort by score": - - skip: - features: default_shards - reason: Scores aren't predictable with many shards + - do: + indices.create: + index: test + body: + settings: + number_of_shards: 1 # The score isn't predictable with more than one shard + - do: bulk: index: test @@ -243,9 +250,12 @@ --- "sort by string script fails": - - skip: - features: default_shards - reason: The failure message isn't predictable with more than one shard + - do: + indices.create: + index: test + body: + settings: + number_of_shards: 1 # The failure message isn't predictable with more than one shard - do: bulk: