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: - do:
allowed_warnings: 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: indices.create:
index: test-1 index: test-1
body: body:
@ -60,7 +60,7 @@
- do: - do:
allowed_warnings: 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: indices.create:
include_type_name: true include_type_name: true
index: test-1 index: test-1
@ -128,7 +128,7 @@
- do: - do:
allowed_warnings: 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:
index: test-1 index: test-1
body: { bar: 42 } body: { bar: 42 }