Watcher: Add REST test for execute watch API

to ensure that a 404 is returned, when the watch does not exist.

Relates elastic/elasticsearch#4919

Original commit: elastic/x-pack-elasticsearch@494cd50804
This commit is contained in:
Alexander Reelsen 2017-02-09 09:20:54 +01:00
parent fe933b027e
commit 2838946d8b
1 changed files with 8 additions and 0 deletions

View File

@ -56,3 +56,11 @@ teardown:
- match: { watch_record.trigger_event.triggered_time: "2012-12-12T12:12:12.120Z" }
- match: { watch_record.trigger_event.manual.schedule.scheduled_time: "2000-12-12T12:12:12.120Z" }
- match: { watch_record.state: "executed" }
---
"Execute unknown watch results in 404":
- do:
xpack.watcher.execute_watch:
id: "non-existent-watch"
catch: missing