Fix allowed_warnings placement in system ingest processor YAML test#20770
Conversation
The v2 index template test had allowed_warnings on the document index step, but the warning about overlapping template patterns is emitted during put_index_template for v2 composable templates, not at index time. Move allowed_warnings to the correct step with the actual warning message returned by the server. Signed-off-by: Andrew Ross <andrross@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
I believe the reason this is flaky is because the "global" template is only rarely added by the test framework: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20770 +/- ##
============================================
- Coverage 73.30% 73.29% -0.02%
- Complexity 72134 72156 +22
============================================
Files 5794 5794
Lines 329806 329806
Branches 47593 47593
============================================
- Hits 241766 241717 -49
- Misses 68555 68715 +160
+ Partials 19485 19374 -111 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The v2 index template test had allowed_warnings on the document index step, but the warning about overlapping template patterns is emitted during put_index_template for v2 composable templates, not at index time. Move allowed_warnings to the correct step with the actual warning message returned by the server.
Related Issues
Resolves #18484
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.