From b1c0631e462c8daad6872d62a1692cc483bcbac2 Mon Sep 17 00:00:00 2001 From: Chris Earle Date: Tue, 18 Apr 2017 17:00:30 -0400 Subject: [PATCH] [TEST] Test explicitly for the watch we're interested in Original commit: elastic/x-pack-elasticsearch@71bd0aee7e7aeed54f1d256a5ca85c70692b607c --- .../rest-api-spec/test/watcher/activate_watch/10_basic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/src/test/resources/rest-api-spec/test/watcher/activate_watch/10_basic.yaml b/plugin/src/test/resources/rest-api-spec/test/watcher/activate_watch/10_basic.yaml index adabcc4d0fb..65c7e460459 100644 --- a/plugin/src/test/resources/rest-api-spec/test/watcher/activate_watch/10_basic.yaml +++ b/plugin/src/test/resources/rest-api-spec/test/watcher/activate_watch/10_basic.yaml @@ -52,6 +52,7 @@ - do: search: index: .watches + body: { "query": { "term": { "_id": "my_watch" } } } - match: { hits.total: 1 } - match: { hits.hits.0._source._status.state.active: false } @@ -71,6 +72,7 @@ - do: search: index: .watches + body: { "query": { "term": { "_id": "my_watch" } } } - match: { hits.total: 1 } - match: { hits.hits.0._source._status.state.active: true }