Brian Murphy 4482d8d2ba Change watcher REST API call namespace to be watcher.
This change changes the API spec such that all of the watcher APIs are in the `watcher` namespace.

Original commit: elastic/x-pack-elasticsearch@f409ab4569
2015-04-28 18:50:07 -04:00

45 lines
913 B
YAML

---
"Test delete watch api":
- do:
cluster.health:
wait_for_status: green
- do:
watcher.put:
id: "my_watch"
body: >
{
"trigger": {
"schedule": {
"hourly": {
"minute": [ 0, 5 ]
}
}
},
"input": {
"simple": {
"payload": {
"send": "yes"
}
}
},
"condition": {
"always": {}
},
"actions": [
{
"test_index": {
"index": {
"index": "test",
"doc_type": "test2"
}
}
} ]
}
- match: { _id: "my_watch" }
- do:
watcher.delete:
id: "my_watch"
- match: { found: true }