Skip to content

Commit

Permalink
Add allowed warnings to the dot-prefix yaml tests (elastic#113560)
Browse files Browse the repository at this point in the history
This adds the missing optional warning from the global legacy template

Relates to elastic#113529 (doesn't close it yet until this has been unmuted,
which won't happen until this change is backported to 8.16)
  • Loading branch information
dakrone committed Sep 26, 2024
1 parent b8dcdd6 commit cc8620e
Showing 1 changed file with 5 additions and 2 deletions.
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 [other, .data2-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template2] will take precedence during new index creation"
indices.put_index_template:
name: my-template2
body:
Expand Down

0 comments on commit cc8620e

Please sign in to comment.