Browse Source

Try to fix test another way.....

Explictly create the index rather than skip adding the default
template....
Nik Everett 5 years ago
parent
commit
5d18655a6d

+ 19 - 9
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: