From e737ea7d4ab4bee9cb71d8af92abb8486f4589ed Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Fri, 26 Oct 2018 12:19:52 -0700 Subject: [PATCH] remove old doc placeholder and migrate ilm docs to top-level (#34615) we are restructuring the docs, this migrates ILM docs outside of the x-pack doc structure. --- .../ilm/apis/delete-lifecycle.asciidoc | 0 .../reference}/ilm/apis/explain.asciidoc | 0 .../ilm/apis/get-lifecycle.asciidoc | 0 .../reference}/ilm/apis/get-status.asciidoc | 3 +- .../reference}/ilm/apis/ilm-api.asciidoc | 0 .../reference}/ilm/apis/move-to-step.asciidoc | 0 .../ilm/apis/put-lifecycle.asciidoc | 0 .../ilm/apis/remove-policy.asciidoc | 0 .../reference}/ilm/apis/retry-policy.asciidoc | 0 .../reference}/ilm/apis/start.asciidoc | 0 .../reference}/ilm/apis/stop.asciidoc | 0 .../get-index-lifecycle-information.asciidoc | 1 + .../ilm/getting-started-ilm.asciidoc | 1 + .../en => docs/reference}/ilm/index.asciidoc | 4 +- .../ilm/set-up-lifecycle-policy.asciidoc | 2 + .../reference}/ilm/start-stop-ilm.asciidoc | 2 + .../ilm/update-lifecycle-policy.asciidoc | 2 + .../ilm/using-policies-rollover.asciidoc | 2 + docs/reference/index.asciidoc | 2 +- .../test/rest/ESRestTestCase.java | 39 +++++++++++- .../AbstractFullClusterRestartTestCase.java | 5 ++ .../index-lifecycle/delete-policy.asciidoc | 0 .../index-lifecycle/get-policy.asciidoc | 0 .../index-lifecycle/put-policy.asciidoc | 0 .../ILMRestTestStateCleaner.java | 63 ------------------- .../xpack/test/rest/XPackRestIT.java | 22 ------- .../upgrades/AbstractUpgradeTestCase.java | 5 ++ .../upgrades/AbstractUpgradeTestCase.java | 5 ++ .../UpgradeClusterClientYamlTestSuiteIT.java | 5 ++ 29 files changed, 73 insertions(+), 90 deletions(-) rename {x-pack/docs/en => docs/reference}/ilm/apis/delete-lifecycle.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/explain.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/get-lifecycle.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/get-status.asciidoc (98%) rename {x-pack/docs/en => docs/reference}/ilm/apis/ilm-api.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/move-to-step.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/put-lifecycle.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/remove-policy.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/retry-policy.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/start.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/apis/stop.asciidoc (100%) rename {x-pack/docs/en => docs/reference}/ilm/get-index-lifecycle-information.asciidoc (96%) rename {x-pack/docs/en => docs/reference}/ilm/getting-started-ilm.asciidoc (96%) rename {x-pack/docs/en => docs/reference}/ilm/index.asciidoc (97%) rename {x-pack/docs/en => docs/reference}/ilm/set-up-lifecycle-policy.asciidoc (98%) rename {x-pack/docs/en => docs/reference}/ilm/start-stop-ilm.asciidoc (99%) rename {x-pack/docs/en => docs/reference}/ilm/update-lifecycle-policy.asciidoc (99%) rename {x-pack/docs/en => docs/reference}/ilm/using-policies-rollover.asciidoc (99%) delete mode 100644 x-pack/docs/en/rest-api/index-lifecycle/delete-policy.asciidoc delete mode 100644 x-pack/docs/en/rest-api/index-lifecycle/get-policy.asciidoc delete mode 100644 x-pack/docs/en/rest-api/index-lifecycle/put-policy.asciidoc delete mode 100644 x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexlifecycle/ILMRestTestStateCleaner.java diff --git a/x-pack/docs/en/ilm/apis/delete-lifecycle.asciidoc b/docs/reference/ilm/apis/delete-lifecycle.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/delete-lifecycle.asciidoc rename to docs/reference/ilm/apis/delete-lifecycle.asciidoc diff --git a/x-pack/docs/en/ilm/apis/explain.asciidoc b/docs/reference/ilm/apis/explain.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/explain.asciidoc rename to docs/reference/ilm/apis/explain.asciidoc diff --git a/x-pack/docs/en/ilm/apis/get-lifecycle.asciidoc b/docs/reference/ilm/apis/get-lifecycle.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/get-lifecycle.asciidoc rename to docs/reference/ilm/apis/get-lifecycle.asciidoc diff --git a/x-pack/docs/en/ilm/apis/get-status.asciidoc b/docs/reference/ilm/apis/get-status.asciidoc similarity index 98% rename from x-pack/docs/en/ilm/apis/get-status.asciidoc rename to docs/reference/ilm/apis/get-status.asciidoc index 00b96d1cc18..8f5d2289ff2 100644 --- a/x-pack/docs/en/ilm/apis/get-status.asciidoc +++ b/docs/reference/ilm/apis/get-status.asciidoc @@ -10,7 +10,7 @@ Gets the current status for ILM. ==== Request -`POST /_ilm/status` +`GET /_ilm/status` ==== Description @@ -42,7 +42,6 @@ The following example stops the ILM plugin. GET _ilm/status -------------------------------------------------- // CONSOLE -// TEST If the request does not encounter errors, you receive the following result: diff --git a/x-pack/docs/en/ilm/apis/ilm-api.asciidoc b/docs/reference/ilm/apis/ilm-api.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/ilm-api.asciidoc rename to docs/reference/ilm/apis/ilm-api.asciidoc diff --git a/x-pack/docs/en/ilm/apis/move-to-step.asciidoc b/docs/reference/ilm/apis/move-to-step.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/move-to-step.asciidoc rename to docs/reference/ilm/apis/move-to-step.asciidoc diff --git a/x-pack/docs/en/ilm/apis/put-lifecycle.asciidoc b/docs/reference/ilm/apis/put-lifecycle.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/put-lifecycle.asciidoc rename to docs/reference/ilm/apis/put-lifecycle.asciidoc diff --git a/x-pack/docs/en/ilm/apis/remove-policy.asciidoc b/docs/reference/ilm/apis/remove-policy.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/remove-policy.asciidoc rename to docs/reference/ilm/apis/remove-policy.asciidoc diff --git a/x-pack/docs/en/ilm/apis/retry-policy.asciidoc b/docs/reference/ilm/apis/retry-policy.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/retry-policy.asciidoc rename to docs/reference/ilm/apis/retry-policy.asciidoc diff --git a/x-pack/docs/en/ilm/apis/start.asciidoc b/docs/reference/ilm/apis/start.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/start.asciidoc rename to docs/reference/ilm/apis/start.asciidoc diff --git a/x-pack/docs/en/ilm/apis/stop.asciidoc b/docs/reference/ilm/apis/stop.asciidoc similarity index 100% rename from x-pack/docs/en/ilm/apis/stop.asciidoc rename to docs/reference/ilm/apis/stop.asciidoc diff --git a/x-pack/docs/en/ilm/get-index-lifecycle-information.asciidoc b/docs/reference/ilm/get-index-lifecycle-information.asciidoc similarity index 96% rename from x-pack/docs/en/ilm/get-index-lifecycle-information.asciidoc rename to docs/reference/ilm/get-index-lifecycle-information.asciidoc index c79a4ed2788..3d5dc8a1720 100644 --- a/x-pack/docs/en/ilm/get-index-lifecycle-information.asciidoc +++ b/docs/reference/ilm/get-index-lifecycle-information.asciidoc @@ -1,3 +1,4 @@ +[role="xpack"] [[get-index-lifecycle-information]] == Get index lifecycle information diff --git a/x-pack/docs/en/ilm/getting-started-ilm.asciidoc b/docs/reference/ilm/getting-started-ilm.asciidoc similarity index 96% rename from x-pack/docs/en/ilm/getting-started-ilm.asciidoc rename to docs/reference/ilm/getting-started-ilm.asciidoc index 7f29740fdd6..ad3596e92a1 100644 --- a/x-pack/docs/en/ilm/getting-started-ilm.asciidoc +++ b/docs/reference/ilm/getting-started-ilm.asciidoc @@ -1,3 +1,4 @@ +[role="xpack"] [[getting-started-index-lifecycle-management]] == Getting started with {ilm} diff --git a/x-pack/docs/en/ilm/index.asciidoc b/docs/reference/ilm/index.asciidoc similarity index 97% rename from x-pack/docs/en/ilm/index.asciidoc rename to docs/reference/ilm/index.asciidoc index 74351dc45e8..04527e31a57 100644 --- a/x-pack/docs/en/ilm/index.asciidoc +++ b/docs/reference/ilm/index.asciidoc @@ -1,3 +1,5 @@ +[role="xpack"] +[testenv="basic"] [[index-lifecycle-management]] = Managing Indices @@ -66,4 +68,4 @@ include::get-index-lifecycle-information.asciidoc[] include::start-stop-ilm.asciidoc[] :edit_url: https://github.com/elastic/elasticsearch/edit/{branch}/x-pack/docs/en/ilm/apis/ilm-api.asciidoc -include::{xes-repo-dir}/ilm/apis/ilm-api.asciidoc[] +include::{es-repo-dir}/ilm/apis/ilm-api.asciidoc[] diff --git a/x-pack/docs/en/ilm/set-up-lifecycle-policy.asciidoc b/docs/reference/ilm/set-up-lifecycle-policy.asciidoc similarity index 98% rename from x-pack/docs/en/ilm/set-up-lifecycle-policy.asciidoc rename to docs/reference/ilm/set-up-lifecycle-policy.asciidoc index 37157bc0a07..9a2815213a5 100644 --- a/x-pack/docs/en/ilm/set-up-lifecycle-policy.asciidoc +++ b/docs/reference/ilm/set-up-lifecycle-policy.asciidoc @@ -1,3 +1,5 @@ +[role="xpack"] +[testenv="basic"] [[set-up-lifecycle-policy]] == Set up {ilm} policy diff --git a/x-pack/docs/en/ilm/start-stop-ilm.asciidoc b/docs/reference/ilm/start-stop-ilm.asciidoc similarity index 99% rename from x-pack/docs/en/ilm/start-stop-ilm.asciidoc rename to docs/reference/ilm/start-stop-ilm.asciidoc index 9630b4f99ce..d6cf18d3d53 100644 --- a/x-pack/docs/en/ilm/start-stop-ilm.asciidoc +++ b/docs/reference/ilm/start-stop-ilm.asciidoc @@ -1,3 +1,5 @@ +[role="xpack"] +[testenv="basic"] [[start-stop-ilm]] == Start And Stop {ilm} diff --git a/x-pack/docs/en/ilm/update-lifecycle-policy.asciidoc b/docs/reference/ilm/update-lifecycle-policy.asciidoc similarity index 99% rename from x-pack/docs/en/ilm/update-lifecycle-policy.asciidoc rename to docs/reference/ilm/update-lifecycle-policy.asciidoc index 7c12ae13bb6..76c86fddeb4 100644 --- a/x-pack/docs/en/ilm/update-lifecycle-policy.asciidoc +++ b/docs/reference/ilm/update-lifecycle-policy.asciidoc @@ -1,3 +1,5 @@ +[role="xpack"] +[testenv="basic"] [[update-lifecycle-policy]] == Update lifecycle policy diff --git a/x-pack/docs/en/ilm/using-policies-rollover.asciidoc b/docs/reference/ilm/using-policies-rollover.asciidoc similarity index 99% rename from x-pack/docs/en/ilm/using-policies-rollover.asciidoc rename to docs/reference/ilm/using-policies-rollover.asciidoc index c8c2e953ddb..fcb50a3c495 100644 --- a/x-pack/docs/en/ilm/using-policies-rollover.asciidoc +++ b/docs/reference/ilm/using-policies-rollover.asciidoc @@ -1,3 +1,5 @@ +[role="xpack"] +[testenv="basic"] [[using-policies-rollover]] == Using policies to manage index rollover diff --git a/docs/reference/index.asciidoc b/docs/reference/index.asciidoc index cfaf9d7e09c..48cb7700a52 100644 --- a/docs/reference/index.asciidoc +++ b/docs/reference/index.asciidoc @@ -55,7 +55,7 @@ include::index-modules.asciidoc[] include::ingest.asciidoc[] -include::{xes-repo-dir}/ilm/index.asciidoc[] +include::ilm/index.asciidoc[] include::sql/index.asciidoc[] diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java index c93838d73ee..05019d45395 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java @@ -282,7 +282,8 @@ public abstract class ESRestTestCase extends ESTestCase { /** * Returns whether to preserve the state of the cluster upon completion of this test. Defaults to false. If true, overrides the value of * {@link #preserveIndicesUponCompletion()}, {@link #preserveTemplatesUponCompletion()}, {@link #preserveReposUponCompletion()}, - * {@link #preserveSnapshotsUponCompletion()}, and {@link #preserveRollupJobsUponCompletion()}. + * {@link #preserveSnapshotsUponCompletion()},{@link #preserveRollupJobsUponCompletion()}, + * and {@link #preserveILMPoliciesUponCompletion()}. * * @return true if the state of the cluster should be preserved */ @@ -347,6 +348,15 @@ public abstract class ESRestTestCase extends ESTestCase { return false; } + /** + * Returns whether to preserve ILM Policies of this test. Defaults to not + * preserviing them. Only runs at all if xpack is installed on the cluster + * being tested. + */ + protected boolean preserveILMPoliciesUponCompletion() { + return false; + } + private void wipeCluster() throws Exception { if (preserveIndicesUponCompletion() == false) { // wipe indices @@ -399,6 +409,10 @@ public abstract class ESRestTestCase extends ESTestCase { wipeRollupJobs(); waitForPendingRollupTasks(); } + + if (hasXPack && false == preserveILMPoliciesUponCompletion()) { + deleteAllPolicies(); + } } /** @@ -509,6 +523,29 @@ public abstract class ESRestTestCase extends ESTestCase { waitForPendingTasks(adminClient(), taskName -> taskName.startsWith("xpack/rollup/job") == false); } + private static void deleteAllPolicies() throws IOException { + Map policies; + + try { + Response response = adminClient().performRequest(new Request("GET", "/_ilm")); + policies = entityAsMap(response); + } catch (ResponseException e) { + if (RestStatus.BAD_REQUEST.getStatus() == e.getResponse().getStatusLine().getStatusCode()) { + // If bad request returned, ILM is not enabled. + return; + } + throw e; + } + + if (policies == null || policies.isEmpty()) { + return; + } + + for (String policyName : policies.keySet()) { + adminClient().performRequest(new Request("DELETE", "/_ilm/" + policyName)); + } + } + /** * Logs a message if there are still running tasks. The reasoning is that any tasks still running are state the is trying to bleed into * other tests. diff --git a/test/framework/src/main/java/org/elasticsearch/upgrades/AbstractFullClusterRestartTestCase.java b/test/framework/src/main/java/org/elasticsearch/upgrades/AbstractFullClusterRestartTestCase.java index b61182415ee..df13f2ba3b1 100644 --- a/test/framework/src/main/java/org/elasticsearch/upgrades/AbstractFullClusterRestartTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/upgrades/AbstractFullClusterRestartTestCase.java @@ -96,4 +96,9 @@ public abstract class AbstractFullClusterRestartTestCase extends ESRestTestCase protected boolean preserveRollupJobsUponCompletion() { return true; } + + @Override + protected boolean preserveILMPoliciesUponCompletion() { + return true; + } } diff --git a/x-pack/docs/en/rest-api/index-lifecycle/delete-policy.asciidoc b/x-pack/docs/en/rest-api/index-lifecycle/delete-policy.asciidoc deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/x-pack/docs/en/rest-api/index-lifecycle/get-policy.asciidoc b/x-pack/docs/en/rest-api/index-lifecycle/get-policy.asciidoc deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/x-pack/docs/en/rest-api/index-lifecycle/put-policy.asciidoc b/x-pack/docs/en/rest-api/index-lifecycle/put-policy.asciidoc deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexlifecycle/ILMRestTestStateCleaner.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexlifecycle/ILMRestTestStateCleaner.java deleted file mode 100644 index 8ff1360b20f..00000000000 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexlifecycle/ILMRestTestStateCleaner.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ -package org.elasticsearch.xpack.core.indexlifecycle; - -import org.elasticsearch.client.Request; -import org.elasticsearch.client.Response; -import org.elasticsearch.client.RestClient; -import org.elasticsearch.test.rest.ESRestTestCase; - -import java.io.IOException; -import java.util.Map; - -public class ILMRestTestStateCleaner { - - public static void clearILMMetadata(RestClient adminClient) throws Exception { - removePoliciesFromAllIndexes(adminClient); - deleteAllPolicies(adminClient); - // indices will be deleted by the ESRestTestCase class - } - - private static void removePoliciesFromAllIndexes(RestClient adminClient) throws IOException { - Response response = adminClient.performRequest(new Request("GET", "/_all")); - Map indexes = ESRestTestCase.entityAsMap(response); - - if (indexes == null || indexes.isEmpty()) { - return; - } - - for (String indexName : indexes.keySet()) { - try { - adminClient.performRequest(new Request("DELETE", indexName + "/_ilm/")); - } catch (Exception e) { - // ok - } - } - } - - private static void deleteAllPolicies(RestClient adminClient) throws Exception { - Map policies; - - try { - Response response = adminClient.performRequest(new Request("GET", "/_ilm")); - policies = ESRestTestCase.entityAsMap(response); - } catch (Exception e) { - return; - } - - if (policies == null || policies.isEmpty()) { - return; - } - - for (String policyName : policies.keySet()) { - try { - adminClient.performRequest(new Request("DELETE", "/_ilm/" + policyName)); - } catch (Exception e) { - // ok - } - } - } -} diff --git a/x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java b/x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java index 5b9fa960ef9..a761755c7cb 100644 --- a/x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java +++ b/x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest/XPackRestIT.java @@ -22,7 +22,6 @@ import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate; import org.elasticsearch.test.rest.yaml.ClientYamlTestResponse; import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase; import org.elasticsearch.test.rest.yaml.ObjectPath; -import org.elasticsearch.xpack.core.indexlifecycle.ILMRestTestStateCleaner; import org.elasticsearch.xpack.core.ml.MlMetaIndex; import org.elasticsearch.xpack.core.ml.integration.MlRestTestStateCleaner; import org.elasticsearch.xpack.core.ml.job.persistence.AnomalyDetectorsIndex; @@ -246,7 +245,6 @@ public class XPackRestIT extends ESClientYamlSuiteTestCase { public void cleanup() throws Exception { disableMonitoring(); clearMlState(); - clearILMState(); if (isWaitForPendingTasks()) { // This waits for pending tasks to complete, so must go last (otherwise // it could be waiting for pending tasks while monitoring is still running). @@ -266,20 +264,6 @@ public class XPackRestIT extends ESClientYamlSuiteTestCase { } } - private void clearILMState() throws Exception { - if (isILMTest()) { - ILMRestTestStateCleaner.clearILMMetadata(adminClient()); - } - } - - /** - - private void clearILMState() throws Exception { - if (isILMTest()) { - ILMRestTestStateCleaner.clearILMMetadata(adminClient()); - } - } - /** * Executes an API call using the admin context, waiting for it to succeed. */ @@ -340,12 +324,6 @@ public class XPackRestIT extends ESClientYamlSuiteTestCase { return testName != null && (testName.contains("=ml/") || testName.contains("=ml\\")); } - protected boolean isILMTest() { - String testName = getTestName(); - return testName != null && (testName.contains("=ilm/") || testName.contains("=ilm\\")) - || (testName.contains("/ilm/") || testName.contains("\\ilm\\")); - } - /** * Should each test wait for pending tasks to finish after execution? * @return Wait for pending tasks diff --git a/x-pack/qa/rolling-upgrade-basic/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java b/x-pack/qa/rolling-upgrade-basic/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java index b9f8481d0bb..e013ffd0175 100644 --- a/x-pack/qa/rolling-upgrade-basic/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java +++ b/x-pack/qa/rolling-upgrade-basic/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java @@ -29,6 +29,11 @@ public abstract class AbstractUpgradeTestCase extends ESRestTestCase { return true; } + @Override + protected boolean preserveILMPoliciesUponCompletion() { + return true; + } + enum CLUSTER_TYPE { OLD, MIXED, diff --git a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java index a1430965339..3b72674ed07 100644 --- a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java +++ b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java @@ -43,6 +43,11 @@ public abstract class AbstractUpgradeTestCase extends ESRestTestCase { return true; } + @Override + protected boolean preserveILMPoliciesUponCompletion() { + return true; + } + enum ClusterType { OLD, MIXED, diff --git a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/UpgradeClusterClientYamlTestSuiteIT.java b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/UpgradeClusterClientYamlTestSuiteIT.java index bd1b4ec28fe..a6e6da57b8a 100644 --- a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/UpgradeClusterClientYamlTestSuiteIT.java +++ b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/UpgradeClusterClientYamlTestSuiteIT.java @@ -47,6 +47,11 @@ public class UpgradeClusterClientYamlTestSuiteIT extends ESClientYamlSuiteTestCa return true; } + @Override + protected boolean preserveILMPoliciesUponCompletion() { + return true; + } + public UpgradeClusterClientYamlTestSuiteIT(ClientYamlTestCandidate testCandidate) { super(testCandidate); }