Skip to content

Commit a191665

Browse files
committed
[Tests] Fix self-referencing tests
This commit adapts some test after #31044 has been merged.
1 parent f9e8afd commit a191665

File tree

2 files changed

+2
-2
lines changed
  • modules/lang-painless/src/test/resources/rest-api-spec/test/painless
  • x-pack/qa/smoke-test-watcher/src/test/resources/rest-api-spec/test/painless

2 files changed

+2
-2
lines changed

modules/lang-painless/src/test/resources/rest-api-spec/test/painless/30_search.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,6 @@
439439
source: "def x = [:] ; def y = [:] ; x.a = y ; y.a = x ; return x"
440440

441441
- match: { error.root_cause.0.type: "illegal_argument_exception" }
442-
- match: { error.root_cause.0.reason: "Iterable object is self-referencing itself" }
442+
- match: { error.root_cause.0.reason: "Iterable object is self-referencing itself (ScriptBytesValues value)" }
443443
- match: { error.type: "search_phase_execution_exception" }
444444
- match: { error.reason: "all shards failed" }

x-pack/qa/smoke-test-watcher/src/test/resources/rest-api-spec/test/painless/40_exception.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
- match: { watch_record.state: "executed" }
7777
- match: { watch_record.result.actions.0.status: "failure" }
7878
- match: { watch_record.result.actions.0.error.caused_by.caused_by.type: "illegal_argument_exception" }
79-
- match: { watch_record.result.actions.0.error.caused_by.caused_by.reason: "Iterable object is self-referencing itself" }
79+
- match: { watch_record.result.actions.0.error.caused_by.caused_by.reason: "Iterable object is self-referencing itself (CustomReflectionObjectHandler stringify)" }
8080

8181
- do:
8282
catch: bad_request

0 commit comments

Comments
 (0)