Use right skip versions.

Closes #27570
This commit is contained in:
Martijn van Groningen 2018-02-06 11:26:48 +01:00
parent 38c5f4efee
commit 2a35b4ee2b
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
2 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,8 @@
---
"top_hits aggregation with nested documents":
- skip:
version: "5.99.99 - "
reason: "5.x nodes don't include index or id in nested top hits"
version: " - 6.1.99"
reason: "<= 6.1 nodes don't always include index or id in nested top hits"
- do:
indices.create:
index: my-index

View File

@ -13,9 +13,8 @@ setup:
---
"Nested inner hits":
- skip:
# this will only run in a mixed cluster environment with at least 1 5.x node
version: "5.99.99 - "
reason: multiple types are not supported on 6.x indices onwards
version: " - 6.1.99"
reason: "<= 6.1 nodes don't always include index or id in nested inner hits"
- do:
index:
index: test
@ -35,7 +34,7 @@ setup:
- match: { hits.hits.0._type: "type_1" }
- match: { hits.hits.0._id: "1" }
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._index: "test" }
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._type: "type1" }
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._type: "type_1" }
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._id: "1" }
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._nested.field: "nested_field" }
- match: { hits.hits.0.inner_hits.nested_field.hits.hits.0._nested.offset: 0 }