Skip to content

Commit 2b715f5

Browse files
authored
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
1 parent 54dc9f9 commit 2b715f5

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
@@ -1228,7 +1228,7 @@ protected static void wipeAllIndices(boolean preserveSecurityIndices) throws IOE
12281228
try {
12291229
// remove all indices except some history indices which can pop up after deleting all data streams but shouldn't interfere
12301230
final List<String> indexPatterns = new ArrayList<>(
1231-
List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*")
1231+
List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*", "-.ds-.triggered_watches-*")
12321232
);
12331233
if (preserveSecurityIndices) {
12341234
indexPatterns.add("-.security-*");

0 commit comments

Comments
 (0)