Skip to content

Commit 08083cf

Browse files
authored
Exclude .triggered-watches from indices cleanup in REST tests (#131235) (#131245)
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 6193eef commit 08083cf

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
@@ -1209,7 +1209,7 @@ protected static void wipeAllIndices(boolean preserveSecurityIndices) throws IOE
12091209
try {
12101210
// remove all indices except some history indices which can pop up after deleting all data streams but shouldn't interfere
12111211
final List<String> indexPatterns = new ArrayList<>(
1212-
List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*")
1212+
List.of("*", "-.ds-ilm-history-*", "-.ds-.slm-history-*", "-.ds-.watcher-history-*", "-.ds-.triggered_watches-*")
12131213
);
12141214
if (preserveSecurityIndices) {
12151215
indexPatterns.add("-.security-*");

0 commit comments

Comments
 (0)