mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 14:05:27 +00:00
This change adds the parameter `master_timeout` to the rest requests that can write to a watch PUT, ACK and DELETE. Also add support in the rest tests to verify that this is accepted. Fixes: elastic/elasticsearch#416 Original commit: elastic/x-pack-elasticsearch@4cc1c50f2c
45 lines
941 B
YAML
45 lines
941 B
YAML
---
|
|
"Test delete watch api":
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
watcher.put_watch:
|
|
id: "my_watch"
|
|
master_timeout: "40s"
|
|
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_watch:
|
|
id: "my_watch"
|
|
- match: { found: true }
|