Skip to content

Commit

Permalink
Unmute rolling upgrade watcher tests and (#51478)
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.

See #33185
  • Loading branch information
martijnvg authored Jan 29, 2020
1 parent 303ad97 commit 69ec669
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 @@ -99,6 +99,7 @@ for (Version bwcVersion : bwcVersions.wireCompatible) {
if (bwcVersion.before('5.6.9') || (bwcVersion.onOrAfter('6.0.0') && bwcVersion.before('6.2.4'))) {
jvmArgs '-da:org.elasticsearch.xpack.monitoring.exporter.http.HttpExportBulk'
}
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 69ec669

Please sign in to comment.