Skip to content

Commit

Permalink
Backport: unmute rolling upgrade watcher tests and
Browse files Browse the repository at this point in the history
set watcher logger to debug level.

These tests haven't run in such a long time,
we first need to get a better picture how/if
these tests fail today.

Backport of elastic#51478
See elastic#33185
  • Loading branch information
martijnvg committed Jan 30, 2020
1 parent b5106aa commit 3d3605e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 41 deletions.
1 change: 1 addition & 0 deletions x-pack/qa/rolling-upgrade/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ for (Version bwcVersion : bwcVersions.wireCompatible) {
}

javaHome = BuildParams.runtimeJavaHome
setting 'logger.org.elasticsearch.xpack.watcher', 'DEBUG'
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
---
"CRUD watch APIs":

- skip:
reason: https://github.com/elastic/elasticsearch/issues/33185
version: "6.7.0 - "

# no need to put watch, exists already
- do:
watcher.get_watch:
id: "my_watch"
- match: { found : true}
- match: { _id: "my_watch" }


# execute watch
- do:
watcher.execute_watch:
Expand Down Expand Up @@ -48,36 +42,29 @@
watcher.deactivate_watch:
watch_id: "my_watch"
- match: { status.state.active : false }

- do:
watcher.get_watch:
id: "my_watch"
- match: { found : true}
- match: { _id: "my_watch" }
- match: { status.state.active: false }


# activate watch again, check with GET API as well
- do:
watcher.activate_watch:
watch_id: "my_watch"
- match: { status.state.active : true }

- do:
watcher.get_watch:
id: "my_watch"
- match: { found : true}
- match: { _id: "my_watch" }
- match: { status.state.active: true }


---
"Test watcher stats output":

- skip:
reason: https://github.com/elastic/elasticsearch/issues/33185
version: "6.7.0 - "

- do:
watcher.stats: {}
- match: { "manually_stopped": false }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
"CRUD watch APIs":
- skip:
reason: https://github.com/elastic/elasticsearch/issues/33185
version: "6.7.0 - "

- do:
watcher.put_watch:
id: "my_watch"
Expand Down Expand Up @@ -31,7 +27,6 @@
- match: { found : true}
- match: { _id: "my_watch" }


# execute watch
- do:
watcher.execute_watch:
Expand Down Expand Up @@ -67,7 +62,7 @@
watcher.deactivate_watch:
watch_id: "my_watch"
- match: { status.state.active : false }

- do:
watcher.get_watch:
id: "my_watch"
Expand All @@ -81,22 +76,16 @@
watcher.activate_watch:
watch_id: "my_watch"
- match: { status.state.active : true }

- do:
watcher.get_watch:
id: "my_watch"
- match: { found : true}
- match: { _id: "my_watch" }
- match: { status.state.active: true }


---
"Test watcher stats output":

- skip:
reason: https://github.com/elastic/elasticsearch/issues/33185
version: "6.7.0 - "

- do:
watcher.stats: {}
- match: { "manually_stopped": false }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
---
"CRUD watch APIs":

- skip:
reason: https://github.com/elastic/elasticsearch/issues/33185
version: "6.7.0 - "

# no need to put watch, exists already
- do:
watcher.get_watch:
id: "my_watch"
- match: { found : true}
- match: { _id: "my_watch" }


# execute watch
- do:
watcher.execute_watch:
Expand Down Expand Up @@ -48,7 +42,7 @@
watcher.deactivate_watch:
watch_id: "my_watch"
- match: { status.state.active : false }

- do:
watcher.get_watch:
id: "my_watch"
Expand All @@ -62,7 +56,7 @@
watcher.activate_watch:
watch_id: "my_watch"
- match: { status.state.active : true }

- do:
watcher.get_watch:
id: "my_watch"
Expand All @@ -72,11 +66,6 @@

---
"Test watcher stats output":

- skip:
reason: https://github.com/elastic/elasticsearch/issues/33185
version: "6.7.0 - "

- do:
watcher.stats: {}
- match: { "manually_stopped": false }
Expand Down

0 comments on commit 3d3605e

Please sign in to comment.