瀏覽代碼

Fix a bug in the BWC tests where we added a field alias in unsupported versions.

Julie Tibshirani 7 年之前
父節點
當前提交
99c3d8ab26
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml

+ 8 - 1
rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml

@@ -7,7 +7,6 @@ setup:
             test:
               properties:
                 numeric_group: { type: integer }
-                group_alias: { type: alias, path: numeric_group }
 
   - do:
       index:
@@ -354,6 +353,14 @@ setup:
   - skip:
       version: " - 6.3.99"
       reason: Field aliases were introduced in 6.4.0.
+  - do:
+      indices.put_mapping:
+        index: test
+        type: test
+        body:
+          test:
+            properties:
+              group_alias: { type: alias, path: numeric_group }
   - do:
       search:
         index: test