Skip to content

Improve watcher rolling upgrade tests #52404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void waitForWatcher() throws Exception {
Response response = client().performRequest(new Request("GET", "_watcher/stats"));
Map<String, Object> responseBody = entityAsMap(response);
List<?> stats = (List<?>) responseBody.get("stats");
assertThat(stats.size(), equalTo(3));
for (Object stat : stats) {
Map<?, ?> statAsMap = (Map<?, ?>) stat;
assertThat(statAsMap.get("watcher_state"), equalTo("started"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
- match: { found : true}
- match: { _id: "my_watch" }

- do:
cluster.health:
index: .watches
wait_for_status: green
wait_for_no_relocating_shards: true
wait_for_events: languid
timeout: 1m

# execute watch
- do:
watcher.execute_watch:
Expand Down