-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong result when executing bulk requests with and without pipeli…
- Loading branch information
1 parent
3fd25bf
commit 88a448f
Showing
3 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
rest-api-spec/src/main/resources/rest-api-spec/test/bulk/90_pipeline.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"One request has pipeline and another not": | ||
- skip: | ||
version: " - 7.99.99" | ||
reason: "change after backporting" | ||
- do: | ||
bulk: | ||
refresh: true | ||
body: | ||
- '{"index": {"_index": "test_index", "_id": "test_id1"}}' | ||
- '{"f1": "v1", "f2": 42}' | ||
- '{"index": {"_index": "test_index", "_id": "test_id2", "pipeline": "mypipeline"}}' | ||
- '{"f1": "v2", "f2": 47}' | ||
|
||
- match: { errors: true } | ||
- match: { items.0.index.result: created } | ||
- match: { items.1.index.status: 400 } | ||
- match: { items.1.index.error.type: illegal_argument_exception } | ||
- match: { items.1.index.error.reason: "pipeline with id [mypipeline] does not exist" } | ||
|
||
- do: | ||
count: | ||
index: test_index | ||
|
||
- match: {count: 1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters