diff --git a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/array_compare_watch/10_basic.yaml b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/array_compare_watch/10_basic.yaml index 509fe741583..102a69cd778 100644 --- a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/array_compare_watch/10_basic.yaml +++ b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/array_compare_watch/10_basic.yaml @@ -10,7 +10,8 @@ wait_for_status: yellow - - do: {xpack.watcher.stats:{}} + - do: + xpack.watcher.stats: {} - match: { "watcher_state": "started" } - match: { "watch_count": 0 } @@ -93,7 +94,8 @@ - do: indices.refresh: {} - - do: {xpack.watcher.stats:{}} + - do: + xpack.watcher.stats: {} - match: { "watch_count": 1 } # Simulate a Thread.sleep() @@ -142,5 +144,6 @@ - match: { found: true } - - do: {xpack.watcher.stats:{}} + - do: + xpack.watcher.stats: {} - match: { "watch_count": 0 } diff --git a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/getting_started/10_monitor_cluster_health.yaml b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/getting_started/10_monitor_cluster_health.yaml index c84dc9b07dd..dbd737057ed 100644 --- a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/getting_started/10_monitor_cluster_health.yaml +++ b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/getting_started/10_monitor_cluster_health.yaml @@ -5,14 +5,15 @@ wait_for_status: yellow - - do: {xpack.watcher.stats:{}} + - do: + xpack.watcher.stats: {} - match: { "watcher_state": "started" } - match: { "watch_count": 0 } - do: xpack.watcher.put_watch: id: "cluster_health_watch" - body: > + body: > { "trigger": { "schedule": { @@ -52,7 +53,8 @@ - match: { _id: "cluster_health_watch" } - match: { created: true } - - do: {xpack.watcher.stats:{}} + - do: + xpack.watcher.stats: {} - match: { "watch_count": 1 } # Simulate a Thread.sleep() @@ -101,5 +103,6 @@ - match: { found: true } - - do: {xpack.watcher.stats:{}} + - do: + xpack.watcher.stats: {} - match: { "watch_count": 0 }