|
@@ -1,6 +1,6 @@
|
|
|
setup:
|
|
|
- skip:
|
|
|
- features: ["allowed_warnings", "headers"]
|
|
|
+ features: headers
|
|
|
- do:
|
|
|
indices.create:
|
|
|
index: foo
|
|
@@ -29,8 +29,6 @@ setup:
|
|
|
- do:
|
|
|
headers:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.put_job:
|
|
|
id: foo
|
|
|
body: >
|
|
@@ -141,8 +139,6 @@ setup:
|
|
|
"Basic Search":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -170,8 +166,6 @@ setup:
|
|
|
cluster_features: ["gte_v6.6.0"]
|
|
|
reason: rest_total_hits_as_int was introduced in 6.6.0
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information.
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -197,8 +191,6 @@ setup:
|
|
|
"Formatted Date Histo":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -225,8 +217,6 @@ setup:
|
|
|
"Empty aggregation":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
rest_total_hits_as_int: true
|
|
|
index: "foo_rollup"
|
|
@@ -242,8 +232,6 @@ setup:
|
|
|
"Empty aggregation with new response format":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -261,8 +249,6 @@ setup:
|
|
|
"Search with Metric":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -296,8 +282,6 @@ setup:
|
|
|
"Search with Query":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -333,8 +317,6 @@ setup:
|
|
|
"Search with MatchAll and Second Job":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
headers:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
rollup.put_job:
|
|
@@ -445,8 +427,6 @@ setup:
|
|
|
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -480,8 +460,6 @@ setup:
|
|
|
"Search with Query and Second Job":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
headers:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
rollup.put_job:
|
|
@@ -592,8 +570,6 @@ setup:
|
|
|
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -629,8 +605,6 @@ setup:
|
|
|
"Search with Query and Second Job different intervals":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
headers:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
rollup.put_job:
|
|
@@ -740,8 +714,6 @@ setup:
|
|
|
"_rollup.version": 1
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
body:
|
|
@@ -777,8 +749,6 @@ setup:
|
|
|
"Wildcards matching single rollup index":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup*"
|
|
|
body:
|
|
@@ -817,8 +787,6 @@ setup:
|
|
|
type: integer
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
headers:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
rollup.put_job:
|
|
@@ -869,8 +837,6 @@ setup:
|
|
|
name: rollup_alias
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "rollup_alias"
|
|
|
body:
|
|
@@ -909,8 +875,6 @@ setup:
|
|
|
type: integer
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
headers:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
rollup.put_job:
|
|
@@ -944,8 +908,6 @@ setup:
|
|
|
name: rollup_alias
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
catch: /RollupSearch currently only supports searching one rollup index at a time\./
|
|
|
rollup.rollup_search:
|
|
|
index: "rollup_alias"
|
|
@@ -981,8 +943,6 @@ setup:
|
|
|
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
|
|
|
warnings:
|
|
|
- "Creating Rollup job [tz] with timezone [Canada/Mountain], but [Canada/Mountain] has been deprecated by the IANA. Use [America/Edmonton] instead."
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.put_job:
|
|
|
id: tz
|
|
|
body: >
|
|
@@ -1052,8 +1012,6 @@ setup:
|
|
|
"_rollup.version": 2
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "tz_rollup"
|
|
|
body:
|
|
@@ -1081,8 +1039,6 @@ setup:
|
|
|
- match: { aggregations.histo.buckets.2.the_max.value: 3 }
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "tz_rollup"
|
|
|
body:
|
|
@@ -1206,8 +1162,6 @@ setup:
|
|
|
"_rollup.version": 2
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "tz_rollup"
|
|
|
body:
|
|
@@ -1236,8 +1190,6 @@ setup:
|
|
|
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "tz_rollup"
|
|
|
body:
|
|
@@ -1269,8 +1221,6 @@ setup:
|
|
|
"Search with typed_keys":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
rollup.rollup_search:
|
|
|
index: "foo_rollup"
|
|
|
typed_keys: true
|
|
@@ -1304,8 +1254,6 @@ setup:
|
|
|
"Search error against live index":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
catch: bad_request
|
|
|
rollup.rollup_search:
|
|
|
index: "foo"
|
|
@@ -1322,8 +1270,6 @@ setup:
|
|
|
"Search error against rollup and live index":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
catch: bad_request
|
|
|
rollup.rollup_search:
|
|
|
index: "foo*"
|
|
@@ -1339,8 +1285,6 @@ setup:
|
|
|
"Search error no matching indices":
|
|
|
|
|
|
- do:
|
|
|
- allowed_warnings:
|
|
|
- - "The rollup functionality will be removed in in Elasticsearch 9.0. See docs for more information."
|
|
|
catch: /Must specify at least one concrete index/
|
|
|
rollup.rollup_search:
|
|
|
index: "bar*"
|