Skip to content

Commit 8c33962

Browse files
committed
Update YAML tests
1 parent 401172a commit 8c33962

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/streams/src/yamlRestTest/resources/rest-api-spec/test/streams/logs/20_substream_restrictions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- match: { errors: true }
1717
- match: { items.0.index.status: 400 }
1818
- match: { items.0.index.error.type: "illegal_argument_exception" }
19-
- match: { items.0.index.error.reason: "Writes to child stream [logs.foo] are not allowed, use the parent stream instead: [logs]" }
19+
- match: { items.0.index.error.reason: "Direct writes to child streams are prohibited. Index directly into the [logs] stream instead" }
2020

2121
---
2222
"Check User Can't Write To Substream Directly With Single Doc":
@@ -36,7 +36,7 @@
3636
body:
3737
foo: bar
3838
- match: { error.type: "illegal_argument_exception" }
39-
- match: { error.reason: "Writes to child stream [logs.foo] are not allowed, use the parent stream instead: [logs]" }
39+
- match: { error.reason: "Direct writes to child streams are prohibited. Index directly into the [logs] stream instead" }
4040

4141
---
4242
"Check Bulk Index With Reroute Processor To Substream Is Rejected":
@@ -69,4 +69,4 @@
6969
- match: { errors: true }
7070
- match: { items.0.index.status: 400 }
7171
- match: { items.0.index.error.type: "illegal_argument_exception" }
72-
- match: { items.0.index.error.reason: "Cannot reroute to substream [logs.foo] as only the stream itself can reroute to substreams. Please reroute to the stream [logs] instead." }
72+
- match: { items.0.index.error.reason: "Pipelines can't re-route documents to child streams, but pipeline [reroute-to-logs-foo] tried to reroute this document from index [bad-index] to index [logs.foo]. Reroute history: bad-index" }

0 commit comments

Comments
 (0)