瀏覽代碼

[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 年之前
父節點
當前提交
fb651f7755
共有 1 個文件被更改,包括 20 次插入10 次删除
  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:
           index: test-xxx
           body:
-              mappings:
-                type_1: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_1: {}
   - do:
         indices.create:
           index: test-xxy
           body:
-              mappings:
-                type_2: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_2: {}
   - do:
         indices.create:
           index: test-xyy
           body:
-              mappings:
-                type_3: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_3: {}
   - do:
         indices.create:
           index: test-yyy
           body:
-              mappings:
-                type_4: {}
+            settings:
+              index:
+                number_of_replicas: 0
+            mappings:
+              type_4: {}
 
   - do:
         cluster.health:
             wait_for_status: green
-            timeout: 1s
 
   - do:
       indices.close:
@@ -37,7 +48,6 @@ setup:
   - do:
         cluster.health:
             wait_for_status: green
-            timeout: 1s
 
 ---
 "Get test-* with defaults":