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:
parent
fe933b027e
commit
2838946d8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue