diff --git a/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java b/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java index d3f40a8cb0f..82539cb1bcd 100644 --- a/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java +++ b/x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/slm/SLMSnapshotBlockingIntegTests.java @@ -38,7 +38,6 @@ import org.elasticsearch.xpack.core.slm.action.ExecuteSnapshotRetentionAction; import org.elasticsearch.xpack.core.slm.action.GetSnapshotLifecycleAction; import org.elasticsearch.xpack.core.slm.action.PutSnapshotLifecycleAction; import org.elasticsearch.xpack.ilm.IndexLifecycle; -import org.junit.After; import org.junit.Before; import java.util.Arrays; @@ -74,23 +73,6 @@ public class SLMSnapshotBlockingIntegTests extends ESIntegTestCase { ensureGreen(); } - @After - public void resetSLMSettings() throws Exception { - // Cancel/delete all snapshots - assertBusy(() -> { - logger.info("--> wiping all snapshots after test"); - client().admin().cluster().prepareGetSnapshots(REPO).get().getSnapshots() - .forEach(snapshotInfo -> { - try { - client().admin().cluster().prepareDeleteSnapshot(REPO, snapshotInfo.snapshotId().getName()).get(); - } catch (Exception e) { - logger.warn("exception cleaning up snapshot " + snapshotInfo.snapshotId().getName(), e); - fail("exception cleanup up snapshot"); - } - }); - }); - } - @Override protected Collection> nodePlugins() { return Arrays.asList(MockRepository.Plugin.class, LocalStateCompositeXPackPlugin.class, IndexLifecycle.class); @@ -287,7 +269,6 @@ public class SLMSnapshotBlockingIntegTests extends ESIntegTestCase { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/47937") public void testBasicFailureRetention() throws Exception { testUnsuccessfulSnapshotRetention(false);