[TEST] Test explicitly for the watch we're interested in

Original commit: elastic/x-pack-elasticsearch@71bd0aee7e
This commit is contained in:
Chris Earle 2017-04-18 17:00:30 -04:00
parent ac441fab57
commit b1c0631e46
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@
- do: - do:
search: search:
index: .watches index: .watches
body: { "query": { "term": { "_id": "my_watch" } } }
- match: { hits.total: 1 } - match: { hits.total: 1 }
- match: { hits.hits.0._source._status.state.active: false } - match: { hits.hits.0._source._status.state.active: false }
@ -71,6 +72,7 @@
- do: - do:
search: search:
index: .watches index: .watches
body: { "query": { "term": { "_id": "my_watch" } } }
- match: { hits.total: 1 } - match: { hits.total: 1 }
- match: { hits.hits.0._source._status.state.active: true } - match: { hits.hits.0._source._status.state.active: true }