Browse Source

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

Julie Tibshirani 7 years ago
parent
commit
99c3d8ab26

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

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