Skip to content

Commit 3b6e223

Browse files
authored
Test: use regex in index template warnings yaml test (#83737)
Fixes: #82502
1 parent 3d2c333 commit 3b6e223

File tree

1 file changed

+3
-5
lines changed
  • modules/lang-mustache/src/yamlRestTest/resources/rest-api-spec/test/lang_mustache

1 file changed

+3
-5
lines changed

modules/lang-mustache/src/yamlRestTest/resources/rest-api-spec/test/lang_mustache/60_typed_keys.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
setup:
22
- skip:
3-
version: all
4-
reason: 'AwaitsFix: https://github.com/elastic/elasticsearch/issues/82502'
5-
features: allowed_warnings
3+
features: allowed_warnings_regex
64
- do:
75
indices.put_template:
86
name: index_template
@@ -22,8 +20,8 @@ setup:
2220
type: keyword
2321

2422
- do:
25-
allowed_warnings:
26-
- "index [test-0] matches multiple legacy templates [global, index_template], composable templates will only match a single template"
23+
allowed_warnings_regex:
24+
- "index \\[test-[0-2]\\] matches multiple legacy templates \\[global, index_template\\], composable templates will only match a single template"
2725
bulk:
2826
refresh: true
2927
body:

0 commit comments

Comments
 (0)