Check for specific watch in watch test

Original commit: elastic/x-pack-elasticsearch@e778f14714
This commit is contained in:
Chris Earle 2017-04-18 15:57:52 -04:00
parent 178d259315
commit 165291a23c
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,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.actions.test_index.ack.state: "awaits_successful_execution" } - match: { hits.hits.0._source._status.actions.test_index.ack.state: "awaits_successful_execution" }