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@494cd50804d8d2f2af4bc630e7ae2ed6787e7e8b
@@ -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
