Tests: Remove useless wait time in watcher REST test

The rest test waited for the watch to run in the background, but there
were no guarantees that this really happened. Also it waited for five
seconds, instead of just executing the watch manually.

relates elastic/x-pack-elasticsearch#2255

Original commit: elastic/x-pack-elasticsearch@56765a649e
This commit is contained in:
Alexander Reelsen 2017-08-14 11:50:53 +02:00
parent 5416a6afd4
commit 69b3ffa40a
1 changed files with 9 additions and 6 deletions

View File

@ -52,13 +52,16 @@
- match: { _id: "test_watch" } - match: { _id: "test_watch" }
- match: { created: true } - match: { created: true }
# Simulate a Thread.sleep()
- do: - do:
catch: request_timeout xpack.watcher.execute_watch:
cluster.health: id: test_watch
wait_for_nodes: 99 body:
timeout: 5s record_execution: true
- match: { "timed_out": true } action_modes:
_all: execute
- match: { watch_record.state: "executed" }
- match: { watch_record.result.actions.0.status: "success" }
- do: - do:
get: get: