Tests: Ignore existing watches index in REST test

This test should ensure, that a missing watch on an existing index
causes an error, thus it can ignore if the .watches index already
exists.

relates elastic/x-pack-elasticsearch#1155

Original commit: elastic/x-pack-elasticsearch@89c56cb2be
This commit is contained in:
Alexander Reelsen 2017-05-02 14:16:19 +02:00
parent 50241717d3
commit ff6283bf80
1 changed files with 3 additions and 0 deletions

View File

@ -4,9 +4,12 @@
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: yellow
# ensure index exists, but ignore if it does already
# this test should ensure the watch is missing, while the index is there
- do: - do:
indices.create: indices.create:
index: .watches index: .watches
ignore: 400
- do: - do:
catch: missing catch: missing