Fixed put_template test to work with 0.90.3 onwards, where

a missing template now throws a 404
This commit is contained in:
Clinton Gormley 2013-09-17 14:28:14 +02:00
parent 59ca459b1c
commit f3e69a150d
1 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,7 @@
name: test
body:
template: test-*
settings:
settings:
number_of_shards: 1
number_of_replicas: 0
@ -22,6 +22,17 @@
indices.delete_template:
name: test
- skip:
version: "0 - 0.90.2"
reason: "Missing templates throw 404 from 0.90.3"
- do:
catch: missing
indices.get_template:
name: test
- skip:
version: "0.90.3 - 999"
reason: "Missing templates didn't throw 404 before 0.90.3"
- do:
indices.get_template:
name: test