Skip to content

Commit 3fccf06

Browse files
committed
test: Assert deprecated http.enebled setting warning
Closes #29603
1 parent 2a1148b commit 3fccf06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/tribe/src/test/java/org/elasticsearch/tribe/TribeServiceTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,13 @@ public void testTribeNodeDeprecation() throws IOException {
216216
}
217217
try (Node node = new MockNode(settings.build(), MockTribePlugin.classpathPlugins)) {
218218
if (tribeServiceEnable) {
219-
assertWarnings("tribe nodes are deprecated in favor of cross-cluster search and will be removed in Elasticsearch 7.0.0");
219+
assertSettingDeprecationsAndWarnings(
220+
new Setting<?>[]{NetworkModule.HTTP_ENABLED},
221+
"tribe nodes are deprecated in favor of cross-cluster search and will be removed in Elasticsearch 7.0.0"
222+
);
220223
}
221224
}
225+
assertSettingDeprecationsAndWarnings(new Setting<?>[]{NetworkModule.HTTP_ENABLED});
222226
}
223227

224228
static class MergableCustomMetaData1 extends TestCustomMetaData

0 commit comments

Comments
 (0)