Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add allowed warnings to the dot-prefix yaml tests #113560

Merged
merged 3 commits into from
Sep 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ teardown:
---
"Deprecated index template with a dot prefix index pattern":
- requires:
test_runner_features: ["warnings", "headers"]
test_runner_features: ["warnings", "headers", "allowed_warnings"]

- do:
warnings:
- "Index [.data-*] name begins with a dot (.), which is deprecated, and will not be allowed in a future Elasticsearch version."
allowed_warnings:
- "index template [my-template] has index patterns [regular, .data-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation"
indices.put_index_template:
name: my-template
body:
Expand All @@ -177,7 +179,8 @@ teardown:

- do:
headers: { X-elastic-product-origin: kibana }
warnings:
allowed_warnings:
- "index template [my-template2] has index patterns [regular, .data-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template2] will take precedence during new index creation"
dakrone marked this conversation as resolved.
Show resolved Hide resolved
indices.put_index_template:
name: my-template2
body:
Expand Down