Skip to content

Commit

Permalink
Correct expected warning in indices.create yml tests (#57409) (#57807)
Browse files Browse the repository at this point in the history
v2 index is now composable, v1 is now legacy

Co-authored-by: David Kyle <david.kyle@elastic.co>
  • Loading branch information
benwtrent and davidkyle committed Jun 8, 2020
1 parent 32338bc commit 3660bf8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

- do:
allowed_warnings:
- "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template"
- "index [test-1] matches multiple legacy templates [global, test_template], composable templates will only match a single template"
indices.create:
index: test-1
body:
Expand Down Expand Up @@ -60,8 +60,8 @@

- 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] matches multiple legacy templates [global, test_template], composable templates will only match a single template"
indices.create:
include_type_name: true
index: test-1
body:
Expand Down Expand Up @@ -128,7 +128,7 @@

- do:
allowed_warnings:
- "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template"
- "index [test-1] matches multiple legacy templates [global, test_template], composable templates will only match a single template"
index:
index: test-1
body: { bar: 42 }
Expand Down

0 comments on commit 3660bf8

Please sign in to comment.