Correct expected warning in indices.create yml tests (#57409)

v2 index is now composable, v1 is now legacy
This commit is contained in:
David Kyle 2020-06-01 19:22:30 +01:00 committed by GitHub
parent 1f500583b1
commit 4d54bb3917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:
@ -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:
@ -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 }