From 8e5bd657872365f41e0b272285d4d8d3682514cd Mon Sep 17 00:00:00 2001 From: Niels Bauman <33722607+nielsbauman@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:17:07 -0300 Subject: [PATCH] Exclude `.triggered-watches` from indices cleanup in REST tests (#131235) Some tests were seeing an unexpected warning header from wiping all indices in the test cleanup, caused by the `.triggered-watches` data stream being present. We exclude the backing indices of this data stream from the indices wipe to avoid the warning header. The presence of this data stream shouldn't intefere with tests, and any tests that do interact with that data stream should assert/control its state by themselves to ensure consistency. Fixes #129682 --- .../main/java/org/elasticsearch/test/rest/ESRestTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java index a00a991b09e84..70fc396b943d1 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java @@ -1228,7 +1228,7 @@ protected static void wipeAllIndices(boolean preserveSecurityIndices) throws IOE try { // remove all indices except some history indices which can pop up after deleting all data streams but shouldn't interfere final List indexPatterns = new ArrayList<>( - List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*") + List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*", "-.ds-.triggered_watches-*") ); if (preserveSecurityIndices) { indexPatterns.add("-.security-*");