Pārlūkot izejas kodu

[Test] Fix indices.stats/13_fields

Remove the wait_for_active_shards: all added by commit 6256c since it
does not work when the cluster has 1 node only.
Tanguy Leroux 7 gadi atpakaļ
vecāks
revīzija
1f66672d6f

+ 6 - 1
rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/13_fields.yml

@@ -6,6 +6,12 @@ setup:
           index:  test1
           wait_for_active_shards: all
           body:
+              settings:
+                # Limit the number of shards so that shards are unlikely
+                # to be relocated or being initialized between the test
+                # set up and the test execution
+                index.number_of_shards: 3
+                index.number_of_replicas: 0
               mappings:
                   bar:
                       properties:
@@ -24,7 +30,6 @@ setup:
 
   - do:
       cluster.health:
-        wait_for_active_shards: all
         wait_for_no_relocating_shards: true
 
   - do: