From 4e95c8a94fa700d44ac31ef17547512748ab1885 Mon Sep 17 00:00:00 2001 From: Andrei Dan Date: Mon, 27 Jan 2020 09:23:26 +0000 Subject: [PATCH] Preserve slm-history-ilm-policy between test runs (#51442) --- .../elasticsearch/xpack/slm/SnapshotLifecycleRestIT.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/slm/SnapshotLifecycleRestIT.java b/x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/slm/SnapshotLifecycleRestIT.java index 428fdf7983000..3c012f0bbf229 100644 --- a/x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/slm/SnapshotLifecycleRestIT.java +++ b/x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/slm/SnapshotLifecycleRestIT.java @@ -65,6 +65,13 @@ protected boolean waitForAllSnapshotsWiped() { return true; } + // as we are testing the SLM history entries we'll preserve the "slm-history-ilm-policy" policy as it'll be associated with the + // .slm-history-* indices and we won't be able to delete it when we wipe out the cluster + @Override + protected boolean preserveILMPoliciesUponCompletion() { + return true; + } + public void testMissingRepo() throws Exception { SnapshotLifecyclePolicy policy = new SnapshotLifecyclePolicy("missing-repo-policy", "snap", "*/1 * * * * ?", "missing-repo", Collections.emptyMap(), SnapshotRetentionConfiguration.EMPTY);