Skip to content

Commit

Permalink
Conditionally run tests asserting overlapping templates (#56028)
Browse files Browse the repository at this point in the history
Only run the tests verifyin the overlapping index templates when there is
no `global` index template (ie. when the default shards are not changed)
  • Loading branch information
andreidan authored Apr 30, 2020
1 parent 8ccd5e3 commit e256bec
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e256bec

Please sign in to comment.