Fix analysis BWC tests - warnings now emitted on index creation

This commit is contained in:
Alan Woodward 2020-01-14 14:48:23 +00:00
parent 1d8cb3c741
commit 4974f56b25
1 changed files with 2 additions and 16 deletions

View File

@ -22,6 +22,8 @@
features: "warnings" features: "warnings"
- do: - do:
warnings:
- 'The [htmpStrip] char filter name is deprecated and will be removed in a future version. Please change the filter name to [html_strip] instead.'
indices.create: indices.create:
index: test_deprecated_htmlstrip index: test_deprecated_htmlstrip
body: body:
@ -38,22 +40,6 @@
type: text type: text
analyzer: my_htmlStripWithCharfilter analyzer: my_htmlStripWithCharfilter
- do:
warnings:
- 'The [htmpStrip] char filter name is deprecated and will be removed in a future version. Please change the filter name to [html_strip] instead.'
index:
index: test_deprecated_htmlstrip
id: 1
body: { "name": "foo bar" }
- do:
warnings:
- 'The [htmpStrip] char filter name is deprecated and will be removed in a future version. Please change the filter name to [html_strip] instead.'
index:
index: test_deprecated_htmlstrip
id: 2
body: { "name": "foo baz" }
- do: - do:
warnings: warnings:
- 'The [htmpStrip] char filter name is deprecated and will be removed in a future version. Please change the filter name to [html_strip] instead.' - 'The [htmpStrip] char filter name is deprecated and will be removed in a future version. Please change the filter name to [html_strip] instead.'