Skip to content

Commit bce7ac2

Browse files
authored
Exclude .triggered-watches from indices cleanup in REST tests (#131235) (#131244)
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
1 parent 36eb222 commit bce7ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ protected static void wipeAllIndices(boolean preserveSecurityIndices) throws IOE
11961196
try {
11971197
// remove all indices except some history indices which can pop up after deleting all data streams but shouldn't interfere
11981198
final List<String> indexPatterns = new ArrayList<>(
1199-
List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*")
1199+
List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*", "-.ds-.triggered_watches-*")
12001200
);
12011201
if (preserveSecurityIndices) {
12021202
indexPatterns.add("-.security-*");

0 commit comments

Comments
 (0)