Browse Source

[TEST] fix for wildcard_expansion REST tests

removed timeout from wait_for_green and set number of replicas to 0 so client tests can pass on single node.
Colin Goodheart-Smithe 11 years ago
parent
commit
fb651f7755
1 changed files with 20 additions and 10 deletions
  1. 20 10
      rest-api-spec/test/indices.get_mapping/50_wildcard_expansion.yaml

+ 20 - 10
rest-api-spec/test/indices.get_mapping/50_wildcard_expansion.yaml

@@ -4,31 +4,42 @@ setup:
         indices.create:
         indices.create:
           index: test-xxx
           index: test-xxx
           body:
           body:
-              mappings:
-                type_1: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_1: {}
   - do:
   - do:
         indices.create:
         indices.create:
           index: test-xxy
           index: test-xxy
           body:
           body:
-              mappings:
-                type_2: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_2: {}
   - do:
   - do:
         indices.create:
         indices.create:
           index: test-xyy
           index: test-xyy
           body:
           body:
-              mappings:
-                type_3: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_3: {}
   - do:
   - do:
         indices.create:
         indices.create:
           index: test-yyy
           index: test-yyy
           body:
           body:
-              mappings:
-                type_4: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_4: {}
 
 
   - do:
   - do:
         cluster.health:
         cluster.health:
             wait_for_status: green
             wait_for_status: green
-            timeout: 1s
 
 
   - do:
   - do:
       indices.close:
       indices.close:
@@ -37,7 +48,6 @@ setup:
   - do:
   - do:
         cluster.health:
         cluster.health:
             wait_for_status: green
             wait_for_status: green
-            timeout: 1s
 
 
 ---
 ---
 "Get test-* with defaults":
 "Get test-* with defaults":