Conditionally run tests asserting overlapping templates (#56028) (#56040)

Only run the tests verifyin the overlapping index templates when there is
no `global` index template (ie. when the default shards are not changed)

(cherry picked from commit e256becad7650018ed6687d6f4ddba5e255f6b29)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
This commit is contained in:
Andrei Dan 2020-04-30 17:02:08 +01:00 committed by GitHub
parent 797f63e743
commit c5b04311e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -3,11 +3,9 @@
- skip:
version: " - 7.99.99"
reason: "simulate index template API has not been backported"
features: allowed_warnings
features: ["default_shards"]
- do:
allowed_warnings:
- "index template [test] has index patterns [te*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test] will take precedence during new index creation"
indices.put_index_template:
name: test
body:
@ -35,11 +33,9 @@
- skip:
version: " - 7.99.99"
reason: "simulate index template API has not been backported"
features: allowed_warnings
features: ["default_shards"]
- do:
allowed_warnings:
- "index template [test] has index patterns [te*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test] will take precedence during new index creation"
indices.put_index_template:
name: existing_test
body:
@ -122,7 +118,7 @@
- skip:
version: " - 7.99.99"
reason: "simulate index template API has not been backported"
features: allowed_warnings
features: ["allowed_warnings", "default_shards"]
- do:
indices.put_template: