[TEST] Replace agg key in async search yaml test (#53727)

Some clients have problems running this test as a numeric key is treated like an array index by default.
We can work around this by renaming the aggregation key to not be a numeric.
This commit is contained in:
Luca Cavanna 2020-03-18 16:15:35 +01:00
parent 2ccb963f1d
commit 75c367de13
1 changed files with 8 additions and 8 deletions

View File

@ -48,7 +48,7 @@
query:
match_all: {}
aggs:
1:
max:
max:
field: max
sort: max
@ -58,7 +58,7 @@
- match: { is_partial: false }
- length: { response.hits.hits: 3 }
- match: { response.hits.hits.0._source.max: 1 }
- match: { response.aggregations.1.value: 3.0 }
- match: { response.aggregations.max.value: 3.0 }
- do:
async_search.submit:
@ -68,7 +68,7 @@
clean_on_completion: false
body:
aggs:
1:
max:
max:
field: max
sort: max
@ -78,7 +78,7 @@
- match: { is_partial: false }
- length: { response.hits.hits: 3 }
- match: { response.hits.hits.0._source.max: 1 }
- match: { response.aggregations.1.value: 3.0 }
- match: { response.aggregations.max.value: 3.0 }
# test with typed_keys:
- do:
@ -90,7 +90,7 @@
typed_keys: true
body:
aggs:
1:
max:
max:
field: max
sort: max
@ -100,7 +100,7 @@
- match: { is_partial: false }
- length: { response.hits.hits: 3 }
- match: { response.hits.hits.0._source.max: 1 }
- match: { response.aggregations.max#1.value: 3.0 }
- match: { response.aggregations.max#max.value: 3.0 }
- do:
async_search.get:
@ -110,7 +110,7 @@
- match: { is_partial: false }
- length: { response.hits.hits: 3 }
- match: { response.hits.hits.0._source.max: 1 }
- match: { response.aggregations.1.value: 3.0 }
- match: { response.aggregations.max.value: 3.0 }
# test with typed_keys:
- do:
@ -122,7 +122,7 @@
- match: { is_partial: false }
- length: { response.hits.hits: 3 }
- match: { response.hits.hits.0._source.max: 1 }
- match: { response.aggregations.max#1.value: 3.0 }
- match: { response.aggregations.max#max.value: 3.0 }
- do:
async_search.delete: