Browse Source

Test fix: add expected warning to a dlm test (#96537) (#96538)

Mary Gouseti 2 years ago
parent
commit
6179ae84f0

+ 5 - 0
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/dlm/10_usage.yml

@@ -3,6 +3,7 @@
   - skip:
       version: "- 8.8.99"
       reason: "the dlm stats were only added to the usage api in 8.9"
+      features: allowed_warnings
 
   - do:
       xpack.usage: {}
@@ -16,6 +17,8 @@
   - match: { data_lifecycle.retention.average_millis: 0 }
 
   - do:
+      allowed_warnings:
+        - "index template [my-template-1] has index patterns [foo-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-1] will take precedence during new index creation"
       indices.put_index_template:
         name: my-template-1
         body:
@@ -35,6 +38,8 @@
   - is_true: acknowledged
 
   - do:
+      allowed_warnings:
+        - "index template [my-template-2] has index patterns [bar-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-2] will take precedence during new index creation"
       indices.put_index_template:
         name: my-template-2
         body: