Skip to content

Commit 09c8a68

Browse files
Cannot skip tests named "values" (elastic#115096) (elastic#115108)
When trying to use a gradle `skipTest` rule on tests named "values", we get a class-caste exception in Jackson. This PR needs to rename this function for all versions of Elasticsearch that the `yamlRestCompatTestTransform` task will run on, so that later PRs that add skipTests will be able to pass. Since this test was added in 8.14, we must backport all the way back to there. ``` class com.fasterxml.jackson.databind.node.IntNode cannot be cast to class com.fasterxml.jackson.databind.node.ArrayNode (com.fasterxml.jackson.databind.node.IntNode and com.fasterxml.jackson.databind.node.ArrayNode are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @50337c96) ```
1 parent 6c30c6c commit 09c8a68

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql

1 file changed

+1
-1
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/80_text.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ setup:
540540
- match: { values.1.0: "Payroll Specialist" }
541541

542542
---
543-
values:
543+
"values function":
544544
- requires:
545545
cluster_features: esql.agg_values
546546
reason: "values is available in 8.14+"

0 commit comments

Comments
 (0)