Rest test fixes (#27354)

* REST: Rename ingest.processor.grok to ingest.processor_grok
* REST: Rename remote.info to cluster.remote_info
* REST: Fixed bad YAML comments
* REST: Force dummy scripts to be strings, not numbers
* REST: Fix bad YAML in search/110_field_collapsing.yml
* REST: Adjust percentile tests to work with Perl number handling
This commit is contained in:
Clinton Gormley 2017-11-14 11:13:16 +01:00
parent 2e863572f4
commit 1caa5c8e32
15 changed files with 238 additions and 253 deletions

View File

@ -158,6 +158,6 @@ teardown:
---
"Test Grok Patterns Retrieval":
- do:
ingest.processor.grok: {}
ingest.processor_grok: {}
- length: { patterns: 303 }
- match: { patterns.PATH: "(?:%{UNIXPATH}|%{WINPATH})" }

View File

@ -2,7 +2,7 @@
"Fetch remote cluster info for existing cluster":
- do:
remote.info: {}
cluster.remote_info: {}
- match: { my_remote_cluster.connected: true }
- match: { my_remote_cluster.num_nodes_connected: 1}
- match: { my_remote_cluster.max_connections_per_cluster: 1}
@ -37,7 +37,7 @@
- match: { hits.hits.0._index: "test_remote_cluster:test_index" }
- do:
remote.info: {}
cluster.remote_info: {}
- set: { my_remote_cluster.http_addresses.0: remote_http }
- match: { test_remote_cluster.http_addresses.0: $remote_http }

View File

@ -1,5 +1,5 @@
{
"remote.info": {
"cluster.remote_info": {
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html",
"methods": ["GET"],
"url": {
@ -9,4 +9,4 @@
},
"body": null
}
}
}

View File

@ -1,5 +1,5 @@
{
"ingest.processor.grok": {
"ingest.processor_grok": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html",
"methods": [ "GET" ],
"url": {

View File

@ -4,6 +4,6 @@
version: " - 5.3.99"
reason: this API doesn't exist in 5.3.x yet
- do:
remote.info: {}
cluster.remote_info: {}
- is_true: ''

View File

@ -1,7 +1,8 @@
---
"Exists type":
- skip:
version: "5.99.99 - "# this will only run in a mixed cluster environment with at least 1 5.x node
# 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
- do:

View File

@ -2,7 +2,8 @@
setup:
- skip:
version: "5.99.99 - " # this will only run in a mixed cluster environment with at least 1 5.x node
# 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
- do:

View File

@ -17,8 +17,9 @@
type: test
id: "1"
body: { "foo": "hello world" }
refresh: true # make this doc visible in index stats
# make this doc visible in index stats
refresh: true
- do:
get:
index: logs_search

View File

@ -1,7 +1,8 @@
---
"IDs":
- skip:
version: "5.99.99 - "# this will only run in a mixed cluster environment with at least 1 5.x node
# 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
- do:

View File

@ -62,27 +62,24 @@ setup:
percentiles:
field: double_field
- match: { hits.total: 4 }
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match:
aggregations.percentiles_double.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match: { aggregations.percentiles_int.values.1\.0: 2.5 }
- match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_int.values.25\.0: 38.5 }
- match: { aggregations.percentiles_int.values.50\.0: 76.0 }
- match: { aggregations.percentiles_int.values.75\.0: 113.5 }
- match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_int.values.99\.0: 149.5 }
- match: { aggregations.percentiles_double.values.1\.0: 2.5 }
- match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_double.values.25\.0: 38.5 }
- match: { aggregations.percentiles_double.values.50\.0: 76.0 }
- match: { aggregations.percentiles_double.values.75\.0: 113.5 }
- match: { aggregations.percentiles_double.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_double.values.99\.0: 149.5 }
- do:
search:
@ -102,24 +99,23 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match:
aggregations.percentiles_double.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match: { aggregations.percentiles_int.values.1\.0: 2.5 }
- match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_int.values.25\.0: 38.5 }
- match: { aggregations.percentiles_int.values.50\.0: 76.0 }
- match: { aggregations.percentiles_int.values.75\.0: 113.5 }
- match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_int.values.99\.0: 149.5 }
- match: { aggregations.percentiles_double.values.1\.0: 2.5 }
- match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_double.values.25\.0: 38.5 }
- match: { aggregations.percentiles_double.values.50\.0: 76.0 }
- match: { aggregations.percentiles_double.values.75\.0: 113.5 }
- match: { aggregations.percentiles_double.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_double.values.99\.0: 149.5 }
---
"Only aggs test":
@ -138,24 +134,24 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 0 }
- match:
aggregations.percentiles_int.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match:
aggregations.percentiles_double.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match: { aggregations.percentiles_int.values.1\.0: 2.5 }
- match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_int.values.25\.0: 38.5 }
- match: { aggregations.percentiles_int.values.50\.0: 76.0 }
- match: { aggregations.percentiles_int.values.75\.0: 113.5 }
- match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_int.values.99\.0: 149.5 }
- match: { aggregations.percentiles_double.values.1\.0: 2.5 }
- match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_double.values.25\.0: 38.5 }
- match: { aggregations.percentiles_double.values.50\.0: 76.0 }
- match: { aggregations.percentiles_double.values.75\.0: 113.5 }
- match: { aggregations.percentiles_double.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_double.values.99\.0: 149.5 }
---
"Filtered test":
@ -179,24 +175,22 @@ setup:
- match: { hits.total: 3 }
- length: { hits.hits: 3 }
- match:
aggregations.percentiles_int.values:
"1.0": 52.0
"5.0": 56.0
"25.0": 76.0
"50.0": 101.0
"75.0": 126.0
"95.0": 146.0
"99.0": 150.0
- match:
aggregations.percentiles_double.values:
"1.0": 52.0
"5.0": 56.0
"25.0": 76.0
"50.0": 101.0
"75.0": 126.0
"95.0": 146.0
"99.0": 150.0
- match: { aggregations.percentiles_int.values.1\.0: 52.0 }
- match: { aggregations.percentiles_int.values.5\.0: 56.0 }
- match: { aggregations.percentiles_int.values.25\.0: 76.0 }
- match: { aggregations.percentiles_int.values.50\.0: 101.0 }
- match: { aggregations.percentiles_int.values.75\.0: 126.0 }
- match: { aggregations.percentiles_int.values.95\.0: 146.0 }
- match: { aggregations.percentiles_int.values.99\.0: 150.0 }
- match: { aggregations.percentiles_double.values.1\.0: 52.0 }
- match: { aggregations.percentiles_double.values.5\.0: 56.0 }
- match: { aggregations.percentiles_double.values.25\.0: 76.0 }
- match: { aggregations.percentiles_double.values.50\.0: 101.0 }
- match: { aggregations.percentiles_double.values.75\.0: 126.0 }
- match: { aggregations.percentiles_double.values.95\.0: 146.0 }
- match: { aggregations.percentiles_double.values.99\.0: 150.0 }
---
"Missing field with missing param":
@ -212,15 +206,14 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_missing.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 1.0
"75.0": 1.0
"95.0": 1.0
"99.0": 1.0
- match: { aggregations.percentiles_missing.values.1\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.5\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.25\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.50\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.75\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.95\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.99\.0: 1.0 }
---
"Missing field without missing param":
@ -253,15 +246,15 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match: { aggregations.percentiles_int.meta.foo: "bar" }
- match:
aggregations.percentiles_int.values:
"1.0": 2.5
"5.0": 8.500000000000002
"25.0": 38.5
"50.0": 76.0
"75.0": 113.5
"95.0": 143.49999999999997
"99.0": 149.5
- match: { aggregations.percentiles_int.values.1\.0: 2.5 }
- match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_int.values.25\.0: 38.5 }
- match: { aggregations.percentiles_int.values.50\.0: 76.0 }
- match: { aggregations.percentiles_int.values.75\.0: 113.5 }
- match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
- match: { aggregations.percentiles_int.values.99\.0: 149.5 }
---
"Invalid params test":
@ -335,16 +328,14 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
5.0: 8.500000000000002
25.0: 38.5
50.0: 76.0
- match:
aggregations.percentiles_double.values:
5.0: 8.500000000000002
25.0: 38.5
50.0: 76.0
- match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_int.values.25\.0: 38.5 }
- match: { aggregations.percentiles_int.values.50\.0: 76.0 }
- match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
- match: { aggregations.percentiles_double.values.25\.0: 38.5 }
- match: { aggregations.percentiles_double.values.50\.0: 76.0 }
---
"Non-keyed test":
@ -362,14 +353,13 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
- key: 5.0
value: 8.500000000000002
- key: 25.0
value: 38.5
- key: 50.0
value: 76.0
- match: { aggregations.percentiles_int.values.0.key: 5.0 }
- match: { aggregations.percentiles_int.values.0.value: 8.500000000000002 }
- match: { aggregations.percentiles_int.values.1.key: 25.0 }
- match: { aggregations.percentiles_int.values.1.value: 38.5 }
- match: { aggregations.percentiles_int.values.2.key: 50.0 }
- match: { aggregations.percentiles_int.values.2.value: 76.0 }

View File

@ -67,24 +67,22 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match:
aggregations.percentiles_double.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match: { aggregations.percentiles_int.values.1\.0: 1.0 }
- match: { aggregations.percentiles_int.values.5\.0: 1.0 }
- match: { aggregations.percentiles_int.values.25\.0: 1.0 }
- match: { aggregations.percentiles_int.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_int.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_int.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_int.values.99\.0: 151.1240234375 }
- match: { aggregations.percentiles_double.values.1\.0: 1.0 }
- match: { aggregations.percentiles_double.values.5\.0: 1.0 }
- match: { aggregations.percentiles_double.values.25\.0: 1.0 }
- match: { aggregations.percentiles_double.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_double.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_double.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_double.values.99\.0: 151.1240234375 }
- do:
search:
@ -104,24 +102,23 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match:
aggregations.percentiles_double.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match: { aggregations.percentiles_int.values.1\.0: 1.0 }
- match: { aggregations.percentiles_int.values.5\.0: 1.0 }
- match: { aggregations.percentiles_int.values.25\.0: 1.0 }
- match: { aggregations.percentiles_int.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_int.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_int.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_int.values.99\.0: 151.1240234375 }
- match: { aggregations.percentiles_double.values.1\.0: 1.0 }
- match: { aggregations.percentiles_double.values.5\.0: 1.0 }
- match: { aggregations.percentiles_double.values.25\.0: 1.0 }
- match: { aggregations.percentiles_double.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_double.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_double.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_double.values.99\.0: 151.1240234375 }
---
"Only aggs test":
@ -142,24 +139,23 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 0 }
- match:
aggregations.percentiles_int.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match:
aggregations.percentiles_double.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match: { aggregations.percentiles_int.values.1\.0: 1.0 }
- match: { aggregations.percentiles_int.values.5\.0: 1.0 }
- match: { aggregations.percentiles_int.values.25\.0: 1.0 }
- match: { aggregations.percentiles_int.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_int.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_int.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_int.values.99\.0: 151.1240234375 }
- match: { aggregations.percentiles_double.values.1\.0: 1.0 }
- match: { aggregations.percentiles_double.values.5\.0: 1.0 }
- match: { aggregations.percentiles_double.values.25\.0: 1.0 }
- match: { aggregations.percentiles_double.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_double.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_double.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_double.values.99\.0: 151.1240234375 }
---
"Filtered test":
@ -185,24 +181,23 @@ setup:
- match: { hits.total: 3 }
- length: { hits.hits: 3 }
- match:
aggregations.percentiles_int.values:
"1.0": 51.0
"5.0": 51.0
"25.0": 51.0
"50.0": 101.03125
"75.0": 101.03125
"95.0": 151.09375
"99.0": 151.09375
- match:
aggregations.percentiles_double.values:
"1.0": 51.0
"5.0": 51.0
"25.0": 51.0
"50.0": 101.03125
"75.0": 101.03125
"95.0": 151.09375
"99.0": 151.09375
- match: { aggregations.percentiles_int.values.1\.0: 51.0 }
- match: { aggregations.percentiles_int.values.5\.0: 51.0 }
- match: { aggregations.percentiles_int.values.25\.0: 51.0 }
- match: { aggregations.percentiles_int.values.50\.0: 101.03125 }
- match: { aggregations.percentiles_int.values.75\.0: 101.03125 }
- match: { aggregations.percentiles_int.values.95\.0: 151.09375 }
- match: { aggregations.percentiles_int.values.99\.0: 151.09375 }
- match: { aggregations.percentiles_double.values.1\.0: 51.0 }
- match: { aggregations.percentiles_double.values.5\.0: 51.0 }
- match: { aggregations.percentiles_double.values.25\.0: 51.0 }
- match: { aggregations.percentiles_double.values.50\.0: 101.03125 }
- match: { aggregations.percentiles_double.values.75\.0: 101.03125 }
- match: { aggregations.percentiles_double.values.95\.0: 151.09375 }
- match: { aggregations.percentiles_double.values.99\.0: 151.09375 }
---
"Missing field with missing param":
@ -219,15 +214,14 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_missing.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 1.0
"75.0": 1.0
"95.0": 1.0
"99.0": 1.0
- match: { aggregations.percentiles_missing.values.1\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.5\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.25\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.50\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.75\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.95\.0: 1.0 }
- match: { aggregations.percentiles_missing.values.99\.0: 1.0 }
---
"Missing field without missing param":
@ -262,15 +256,14 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match: { aggregations.percentiles_int.meta.foo: "bar" }
- match:
aggregations.percentiles_int.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match: { aggregations.percentiles_int.values.1\.0: 1.0 }
- match: { aggregations.percentiles_int.values.5\.0: 1.0 }
- match: { aggregations.percentiles_int.values.25\.0: 1.0 }
- match: { aggregations.percentiles_int.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_int.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_int.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_int.values.99\.0: 151.1240234375 }
---
"Invalid params test":
@ -372,16 +365,16 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
- match:
aggregations.percentiles_double.values:
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
- match: { aggregations.percentiles_int.values.5\.0: 1.0 }
- match: { aggregations.percentiles_int.values.25\.0: 1.0 }
- match: { aggregations.percentiles_int.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_double.values.5\.0: 1.0 }
- match: { aggregations.percentiles_double.values.25\.0: 1.0 }
- match: { aggregations.percentiles_double.values.50\.0: 51.0302734375 }
---
"Non-keyed test":
@ -400,14 +393,14 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
- key: 5.0
value: 1.0
- key: 25.0
value: 1.0
- key: 50.0
value: 51.0302734375
- match: { aggregations.percentiles_int.values.0.key: 5.0 }
- match: { aggregations.percentiles_int.values.0.value: 1.0 }
- match: { aggregations.percentiles_int.values.1.key: 25.0 }
- match: { aggregations.percentiles_int.values.1.value: 1.0 }
- match: { aggregations.percentiles_int.values.2.key: 50.0 }
- match: { aggregations.percentiles_int.values.2.value: 51.0302734375 }
---
@ -433,15 +426,14 @@ setup:
- match: { hits.total: 4 }
- length: { hits.hits: 4 }
- match:
aggregations.percentiles_int.values:
"1.0": 1.0
"5.0": 1.0
"25.0": 1.0
"50.0": 51.0302734375
"75.0": 101.0615234375
"95.0": 151.1240234375
"99.0": 151.1240234375
- match: { aggregations.percentiles_int.values.1\.0: 1.0 }
- match: { aggregations.percentiles_int.values.5\.0: 1.0 }
- match: { aggregations.percentiles_int.values.25\.0: 1.0 }
- match: { aggregations.percentiles_int.values.50\.0: 51.0302734375 }
- match: { aggregations.percentiles_int.values.75\.0: 101.0615234375 }
- match: { aggregations.percentiles_int.values.95\.0: 151.1240234375 }
- match: { aggregations.percentiles_int.values.99\.0: 151.1240234375 }
- match: { _shards.failures.0.reason.type: array_index_out_of_bounds_exception }

View File

@ -13,7 +13,8 @@ setup:
---
"Nested inner hits":
- skip:
version: "5.99.99 - "# this will only run in a mixed cluster environment with at least 1 5.x node
# 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
- do:
index:

View File

@ -278,13 +278,11 @@ setup:
index: test
type: test
body:
collapse: {
field: numeric_group,
inner_hits: [
{ name: sub_hits_asc, size: 2, sort: [{ sort: asc }] },
{ name: sub_hits_desc, size: 1, sort: [{ sort: desc }] }
]
}
collapse:
field: numeric_group
inner_hits:
- { name: sub_hits_asc, size: 2, sort: [{ sort: asc }] }
- { name: sub_hits_desc, size: 1, sort: [{ sort: desc }] }
sort: [{ sort: desc }]
- match: { hits.total: 6 }

View File

@ -117,7 +117,8 @@ setup:
- match: { _shards.total: 3 }
- match: { _shards.successful: 3 }
- match: { _shards.skipped : 2} # skip 2 and execute one to fetch the actual empty result
# skip 2 and execute one to fetch the actual empty result
- match: { _shards.skipped : 2}
- match: { _shards.failed: 0 }
- match: { hits.total: 0 }

View File

@ -81,8 +81,7 @@ setup:
body:
query:
match_all: {}
script_fields: {
"test1" : { "script" : { "lang": "painless", "source": "1" }},
"test2" : { "script" : { "lang": "painless", "source": "1" }},
"test3" : { "script" : { "lang": "painless", "source": "1" }}
}
script_fields:
"test1" : { "script" : { "lang": "painless", "source": "1;" }}
"test2" : { "script" : { "lang": "painless", "source": "1;" }}
"test3" : { "script" : { "lang": "painless", "source": "1;" }}