Preserve slm-history-ilm-policy between test runs (#51442) (#51468)

(cherry picked from commit 4e95c8a94fa700d44ac31ef17547512748ab1885)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
This commit is contained in:
Andrei Dan 2020-01-27 10:40:40 +00:00 committed by GitHub
parent d872db278a
commit 977cce002e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -65,6 +65,13 @@ public class SnapshotLifecycleRestIT extends ESRestTestCase {
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);