Skip to content

Commit

Permalink
[TEST] Allow more warnings about multiple template matches (elastic#5…
Browse files Browse the repository at this point in the history
…6085)

Adds some extra allowed warnings about multiple index templates
matching on index creation of the same type that were added
in elastic#56038.
  • Loading branch information
droberts195 authored May 3, 2020
1 parent 3a64ecb commit 31e32aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- skip:
version: " - 6.6.99"
reason: Merging typeless/typed mappings/templates was added in 6.7
features: allowed_warnings

- do:
indices.put_template:
Expand All @@ -18,6 +19,8 @@
type: keyword

- do:
allowed_warnings:
- "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template"
indices.create:
index: test-1
body:
Expand All @@ -42,6 +45,7 @@
- skip:
version: " - 6.6.99"
reason: Merging typeless/typed mappings/templates was added in 6.7
features: allowed_warnings

- do:
indices.put_template:
Expand All @@ -55,6 +59,8 @@
type: keyword

- do:
allowed_warnings:
- "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template"
indices.create:
include_type_name: true
index: test-1
Expand Down Expand Up @@ -106,6 +112,7 @@
- skip:
version: " - 6.99.99"
reason: needs typeless index operations to work on typed indices
features: allowed_warnings

- do:
indices.put_template:
Expand All @@ -120,6 +127,8 @@
type: keyword

- do:
allowed_warnings:
- "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template"
index:
index: test-1
body: { bar: 42 }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
"Test upgraded > 7.7 cluster with pre-7.8 and 7.8+ geo_shape fields":
- skip:
features: allowed_warnings
- do:
allowed_warnings:
- "index [new_locations] matches multiple v1 templates [global, template], v2 index templates will only match a single index template"
indices.create:
index: new_locations
body:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ setup:

---
"Test old and mixed cluster datafeeds without aggs":
- skip:
features: allowed_warnings
- do:
allowed_warnings:
- "index [airline-data] matches multiple v1 templates [global, template], v2 index templates will only match a single index template"
indices.create:
index: airline-data
body:
Expand Down Expand Up @@ -108,6 +112,8 @@ setup:
- skip:
features: allowed_warnings
- do:
allowed_warnings:
- "index [airline-data] matches multiple v1 templates [global, template], v2 index templates will only match a single index template"
indices.create:
index: airline-data
body:
Expand Down

0 comments on commit 31e32aa

Please sign in to comment.