Change the watch specific actions to reflect that they operate on watches.

This change changes the watch specific actions put/get/delete/execute/ack to be watcher.<action>_watch.

Original commit: elastic/x-pack-elasticsearch@86a91cb141
This commit is contained in:
Brian Murphy 2015-04-28 19:08:28 -04:00
parent 4482d8d2ba
commit 94bea8f83a
12 changed files with 18 additions and 18 deletions

View File

@ -31,7 +31,7 @@
<tests.heap.size>512m</tests.heap.size>
<tests.topn>5</tests.topn>
<execution.hint.file>.local-${project.version}-execution-hints.log</execution.hint.file>
<tests.rest>false</tests.rest>
<tests.rest>true</tests.rest>
<tests.slow>false</tests.slow>
<tests.timewarp>true</tests.timewarp>
</properties>

View File

@ -1,5 +1,5 @@
{
"watcher.ack": {
"watcher.ack_watch": {
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-ack-watch.html",
"methods": [ "PUT", "POST" ],
"url": {

View File

@ -1,5 +1,5 @@
{
"watcher.delete": {
"watcher.delete_watch": {
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-delete-watch.html",
"methods": [ "DELETE" ],
"url": {

View File

@ -1,5 +1,5 @@
{
"watcher.execute": {
"watcher.execute_watch": {
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-execute-watch.html",
"methods": [ "PUT", "POST" ],
"url": {

View File

@ -1,5 +1,5 @@
{
"watcher.get": {
"watcher.get_watch": {
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-get-watch.html",
"methods": [ "GET" ],
"url": {

View File

@ -1,5 +1,5 @@
{
"watcher.put": {
"watcher.put_watch": {
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-put-watch.html",
"methods": [ "PUT", "POST" ],
"url": {

View File

@ -5,7 +5,7 @@
wait_for_status: green
- do:
watcher.put:
watcher.put_watch:
id: "my_watch"
body: >
{
@ -43,11 +43,11 @@
wait_for_status: green
- do:
watcher.ack:
watcher.ack_watch:
id: "my_watch"
- match: { "status.ack.state" : "awaits_execution" }
- do:
watcher.delete:
watcher.delete_watch:
id: "my_watch"
- match: { found: true }

View File

@ -5,7 +5,7 @@
wait_for_status: green
- do:
watcher.put:
watcher.put_watch:
id: "my_watch"
body: >
{
@ -39,6 +39,6 @@
- match: { _id: "my_watch" }
- do:
watcher.delete:
watcher.delete_watch:
id: "my_watch"
- match: { found: true }

View File

@ -5,7 +5,7 @@
wait_for_status: green
- do:
watcher.put:
watcher.put_watch:
id: "my_exe_watch"
body: >
{
@ -55,7 +55,7 @@
- match: { _id: "my_exe_watch" }
- do:
watcher.execute:
watcher.execute_watch:
id: "my_exe_watch"
body: >
{

View File

@ -5,7 +5,7 @@
wait_for_status: green
- do:
watcher.put:
watcher.put_watch:
id: "my_logging_watch"
body: >
{
@ -53,7 +53,7 @@
- match: { _id: "my_logging_watch" }
- do:
watcher.execute:
watcher.execute_watch:
id: "my_logging_watch"
body: null

View File

@ -5,7 +5,7 @@
wait_for_status: green
- do:
watcher.put:
watcher.put_watch:
id: "my_watch"
body: >
{
@ -41,7 +41,7 @@
- match: { created: true }
- do:
watcher.get:
watcher.get_watch:
id: "my_watch"
- match: { found : true}
- match: { _id: "my_watch" }

View File

@ -5,7 +5,7 @@
wait_for_status: green
- do:
watcher.put:
watcher.put_watch:
id: "my_watch"
body: >
{