Skip to content

Commit

Permalink
Preserve slm-history-ilm-policy between test runs (#51442) (#51468)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4e95c8a)
Signed-off-by: Andrei Dan <[email protected]>
  • Loading branch information
andreidan authored Jan 27, 2020
1 parent d872db2 commit 977cce0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 977cce0

Please sign in to comment.