Skip to content

Commit 6ef6510

Browse files
committed
Rest compatibility should not assert unsupported values
We run older yaml tests, but they make assertions that are not longer valid and so we need to exclude those tests using task.skipTest
1 parent 6171431 commit 6ef6510

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

x-pack/plugin/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ tasks.named("yamlRestCompatTestTransform").configure({ task ->
102102
task.skipTest("esql/190_lookup_join/alias-pattern-multiple", "LOOKUP JOIN does not support index aliases for now")
103103
task.skipTest("esql/190_lookup_join/alias-pattern-single", "LOOKUP JOIN does not support index aliases for now")
104104
task.skipTest("esql/180_match_operator/match with disjunctions", "Disjunctions in full text functions work now")
105+
task.skipTest("esql/130_spatial/values unsupported for geo_point", "Spatial types are now supported in VALUES aggregation")
106+
task.skipTest("esql/130_spatial/values unsupported for geo_point status code", "Spatial types are now supported in VALUES aggregation")
105107
// Expected deprecation warning to compat yaml tests:
106108
task.addAllowedWarningRegex(".*rollup functionality will be removed in Elasticsearch.*")
107109
task.skipTest("esql/40_tsdb/from doc with aggregate_metric_double", "TODO: support for subset of metric fields")

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/130_spatial.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ setup:
33
- requires:
44
cluster_features: ["gte_v8.14.0"]
55
reason: "Mixed cluster tests don't work with the changed error message from sort"
6-
test_runner_features: allowed_warnings_regex
6+
test_runner_features: [ capabilities, allowed_warnings_regex ]
77

88
- do:
99
indices.create:
@@ -148,15 +148,14 @@ geo_point unsortable with limit from row:
148148
query: 'ROW wkt = ["POINT(42.9711 -14.7553)", "POINT(75.8093 22.7277)"] | MV_EXPAND wkt | EVAL pt = TO_GEOPOINT(wkt) | limit 5 | sort pt'
149149

150150
---
151-
values unsupported for geo_point:
151+
values supported for geo_point:
152152
- requires:
153153
capabilities:
154154
- method: POST
155155
path: /_query
156156
parameters: [ method, path, parameters, capabilities ]
157157
capabilities: [ agg_values_spatial ]
158158
reason: "Spatial types added to values aggregation in 8.19.0"
159-
test_runner_features: [ capabilities, allowed_warnings_regex ]
160159
- do:
161160
allowed_warnings_regex:
162161
- "No limit defined, adding default limit of \\[.*\\]"

0 commit comments

Comments
 (0)