[REST-TEST] Add master_timeout to the rest API specs

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
This commit is contained in:
Brian Murphy 2015-05-07 12:13:39 -04:00
parent 2e787fff2b
commit 6f2429afb4
6 changed files with 15 additions and 0 deletions

View File

@ -13,6 +13,10 @@
}
},
"params": {
"master_timeout": {
"type": "duration",
"description": "Specify timeout for watch write operation"
}
}
},
"body": null

View File

@ -13,6 +13,10 @@
}
},
"params": {
"master_timeout": {
"type": "duration",
"description": "Specify timeout for watch write operation"
}
}
},
"body": null

View File

@ -13,6 +13,10 @@
}
},
"params": {
"master_timeout": {
"type": "duration",
"description": "Specify timeout for watch write operation"
}
}
},
"body": {

View File

@ -7,6 +7,7 @@
- do:
watcher.put_watch:
id: "my_watch"
master_timeout: "40s"
body: >
{
"trigger" : {

View File

@ -7,6 +7,7 @@
- do:
watcher.put_watch:
id: "my_watch"
master_timeout: "40s"
body: >
{
"trigger": {

View File

@ -7,6 +7,7 @@
- do:
watcher.put_watch:
id: "my_watch"
master_timeout: "40s"
body: >
{
"trigger": {