Skip to content

Commit f7e2082

Browse files
authored
Backport: unmute rolling upgrade watcher tests and (#51664)
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 #51478 See #33185
1 parent 285a167 commit f7e2082

File tree

4 files changed

+7
-41
lines changed

4 files changed

+7
-41
lines changed

x-pack/qa/rolling-upgrade/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ for (Version bwcVersion : bwcVersions.wireCompatible) {
102102
}
103103

104104
javaHome = BuildParams.runtimeJavaHome
105+
setting 'logger.org.elasticsearch.xpack.watcher', 'DEBUG'
105106
}
106107
}
107108

x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/60_watcher.yml

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
---
22
"CRUD watch APIs":
3-
4-
- skip:
5-
reason: https://github.com/elastic/elasticsearch/issues/33185
6-
version: "6.7.0 - "
7-
83
# no need to put watch, exists already
94
- do:
105
watcher.get_watch:
116
id: "my_watch"
127
- match: { found : true}
138
- match: { _id: "my_watch" }
149

15-
1610
# execute watch
1711
- do:
1812
watcher.execute_watch:
@@ -48,36 +42,29 @@
4842
watcher.deactivate_watch:
4943
watch_id: "my_watch"
5044
- match: { status.state.active : false }
51-
45+
5246
- do:
5347
watcher.get_watch:
5448
id: "my_watch"
5549
- match: { found : true}
5650
- match: { _id: "my_watch" }
5751
- match: { status.state.active: false }
5852

59-
6053
# activate watch again, check with GET API as well
6154
- do:
6255
watcher.activate_watch:
6356
watch_id: "my_watch"
6457
- match: { status.state.active : true }
65-
58+
6659
- do:
6760
watcher.get_watch:
6861
id: "my_watch"
6962
- match: { found : true}
7063
- match: { _id: "my_watch" }
7164
- match: { status.state.active: true }
7265

73-
7466
---
7567
"Test watcher stats output":
76-
77-
- skip:
78-
reason: https://github.com/elastic/elasticsearch/issues/33185
79-
version: "6.7.0 - "
80-
8168
- do:
8269
watcher.stats: {}
8370
- match: { "manually_stopped": false }

x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/old_cluster/60_watcher.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
---
22
"CRUD watch APIs":
3-
- skip:
4-
reason: https://github.com/elastic/elasticsearch/issues/33185
5-
version: "6.7.0 - "
6-
73
- do:
84
watcher.put_watch:
95
id: "my_watch"
@@ -31,7 +27,6 @@
3127
- match: { found : true}
3228
- match: { _id: "my_watch" }
3329

34-
3530
# execute watch
3631
- do:
3732
watcher.execute_watch:
@@ -67,7 +62,7 @@
6762
watcher.deactivate_watch:
6863
watch_id: "my_watch"
6964
- match: { status.state.active : false }
70-
65+
7166
- do:
7267
watcher.get_watch:
7368
id: "my_watch"
@@ -81,22 +76,16 @@
8176
watcher.activate_watch:
8277
watch_id: "my_watch"
8378
- match: { status.state.active : true }
84-
79+
8580
- do:
8681
watcher.get_watch:
8782
id: "my_watch"
8883
- match: { found : true}
8984
- match: { _id: "my_watch" }
9085
- match: { status.state.active: true }
9186

92-
9387
---
9488
"Test watcher stats output":
95-
96-
- skip:
97-
reason: https://github.com/elastic/elasticsearch/issues/33185
98-
version: "6.7.0 - "
99-
10089
- do:
10190
watcher.stats: {}
10291
- match: { "manually_stopped": false }

x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/60_watcher.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
---
22
"CRUD watch APIs":
3-
4-
- skip:
5-
reason: https://github.com/elastic/elasticsearch/issues/33185
6-
version: "6.7.0 - "
7-
83
# no need to put watch, exists already
94
- do:
105
watcher.get_watch:
116
id: "my_watch"
127
- match: { found : true}
138
- match: { _id: "my_watch" }
149

15-
1610
# execute watch
1711
- do:
1812
watcher.execute_watch:
@@ -48,7 +42,7 @@
4842
watcher.deactivate_watch:
4943
watch_id: "my_watch"
5044
- match: { status.state.active : false }
51-
45+
5246
- do:
5347
watcher.get_watch:
5448
id: "my_watch"
@@ -62,7 +56,7 @@
6256
watcher.activate_watch:
6357
watch_id: "my_watch"
6458
- match: { status.state.active : true }
65-
59+
6660
- do:
6761
watcher.get_watch:
6862
id: "my_watch"
@@ -72,11 +66,6 @@
7266

7367
---
7468
"Test watcher stats output":
75-
76-
- skip:
77-
reason: https://github.com/elastic/elasticsearch/issues/33185
78-
version: "6.7.0 - "
79-
8069
- do:
8170
watcher.stats: {}
8271
- match: { "manually_stopped": false }

0 commit comments

Comments
 (0)