Skip to content

Commit

Permalink
Fix allowed_warnings takes no effect for the yaml test in 75_update.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Gao Binlong <[email protected]>
  • Loading branch information
gaobinlong committed Dec 3, 2024
1 parent ac45643 commit b927c72
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ teardown:
- skip:
version: " - 2.18.99"
reason: "this change is added in 2.19.0"
features: allowed_warnings
features: [warnings, headers]
- do:
index:
index: test_1
Expand All @@ -57,7 +57,8 @@ teardown:
- match: { result: created }

- do:
allowed_warnings:
headers: { "X-Opaque-Id": "default_pipeline_request" }
warnings:
- "the index [test_1] has a default ingest pipeline or a final ingest pipeline, the support of the ingest pipelines for update operation causes unexpected result and will be removed in 3.0.0"
update:
index: test_1
Expand Down Expand Up @@ -85,7 +86,8 @@ teardown:
- match: { result: created }

- do:
allowed_warnings:
headers: { "X-Opaque-Id": "final_pipeline_request" }
warnings:
- "the index [test_2] has a default ingest pipeline or a final ingest pipeline, the support of the ingest pipelines for update operation causes unexpected result and will be removed in 3.0.0"
update:
index: test_2
Expand Down

0 comments on commit b927c72

Please sign in to comment.