mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 15:39:49 +00:00
45 lines
910 B
YAML
45 lines
910 B
YAML
|
---
|
||
|
"Test delete watch api":
|
||
|
- do:
|
||
|
cluster.health:
|
||
|
wait_for_status: green
|
||
|
|
||
|
- do:
|
||
|
put_watch:
|
||
|
id: "my_watch"
|
||
|
body: >
|
||
|
{
|
||
|
"trigger": {
|
||
|
"schedule": {
|
||
|
"hourly": {
|
||
|
"minute": [ 0, 5 ]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"input": {
|
||
|
"simple": {
|
||
|
"payload": {
|
||
|
"send": "yes"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"condition": {
|
||
|
"always_true": {}
|
||
|
},
|
||
|
"actions": [
|
||
|
{
|
||
|
"test_index": {
|
||
|
"index": {
|
||
|
"index": "test",
|
||
|
"type": "test2"
|
||
|
}
|
||
|
}
|
||
|
} ]
|
||
|
}
|
||
|
- match: { _id: "my_watch" }
|
||
|
|
||
|
- do:
|
||
|
delete_watch:
|
||
|
id: "my_watch"
|
||
|
- match: { found: true }
|