diff --git a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/get_watch/10_basic.yaml b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/get_watch/10_basic.yaml index faa96303041..6fe44ebf0b3 100644 --- a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/get_watch/10_basic.yaml +++ b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/get_watch/10_basic.yaml @@ -7,7 +7,7 @@ - do: xpack.watcher.put_watch: id: "my_watch" - body: > + body: > { "trigger": { "schedule": { @@ -43,5 +43,5 @@ id: "my_watch" - match: { found : true} - match: { _id: "my_watch" } - - match: { _status.version: 1 } + - is_true: _status.version - is_false: watch.status diff --git a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/put_watch/40_put_watch_as_inactive.yaml b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/put_watch/40_put_watch_as_inactive.yaml index 2a533f3320b..3aabc40a967 100644 --- a/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/put_watch/40_put_watch_as_inactive.yaml +++ b/elasticsearch/x-pack/watcher/src/test/resources/rest-api-spec/test/xpack/watcher/put_watch/40_put_watch_as_inactive.yaml @@ -45,5 +45,4 @@ - match: { found : true } - match: { _id: "my_watch" } - - match: { _status.version: 1 } - match: { _status.state.active: false }