Skip to content

Commit 5d18655

Browse files
committed
Try to fix test another way.....
Explictly create the index rather than skip adding the default template....
1 parent cd54dc1 commit 5d18655

File tree

1 file changed

+19
-9
lines changed
  • x-pack/plugin/src/test/resources/rest-api-spec/test/analytics

1 file changed

+19
-9
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,12 @@
156156

157157
---
158158
"sort by keyword field fails":
159-
- skip:
160-
features: default_shards
161-
reason: The failure message isn't predictable with more than one shard
159+
- do:
160+
indices.create:
161+
index: test
162+
body:
163+
settings:
164+
number_of_shards: 1 # The failure message isn't predictable with more than one shard
162165

163166
- do:
164167
bulk:
@@ -183,9 +186,13 @@
183186

184187
---
185188
"sort by score":
186-
- skip:
187-
features: default_shards
188-
reason: Scores aren't predictable with many shards
189+
- do:
190+
indices.create:
191+
index: test
192+
body:
193+
settings:
194+
number_of_shards: 1 # The score isn't predictable with more than one shard
195+
189196
- do:
190197
bulk:
191198
index: test
@@ -243,9 +250,12 @@
243250

244251
---
245252
"sort by string script fails":
246-
- skip:
247-
features: default_shards
248-
reason: The failure message isn't predictable with more than one shard
253+
- do:
254+
indices.create:
255+
index: test
256+
body:
257+
settings:
258+
number_of_shards: 1 # The failure message isn't predictable with more than one shard
249259

250260
- do:
251261
bulk:

0 commit comments

Comments
 (0)