From 5912895838ee5582da520563093e33f7067d0b80 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Tue, 10 Mar 2020 13:21:09 +0100 Subject: [PATCH] =?UTF-8?q?[Transform]=20wait=20for=20transform=20template?= =?UTF-8?q?s=20in=20Rest=20integration=20t=E2=80=A6=20(#53330)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add transform templates to the list of templates to be installed before executing tests --- .../org/elasticsearch/xpack/test/rest/XPackRestIT.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 3d5d92c8eb7..dd207033554 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 @@ -6,6 +6,7 @@ package org.elasticsearch.xpack.test.rest; import com.carrotsearch.randomizedtesting.annotations.ParametersFactory; + import org.apache.http.HttpStatus; import org.elasticsearch.ElasticsearchException; import org.elasticsearch.common.CheckedFunction; @@ -24,6 +25,7 @@ import org.elasticsearch.xpack.core.ml.job.persistence.AnomalyDetectorsIndex; import org.elasticsearch.xpack.core.ml.job.persistence.AnomalyDetectorsIndexFields; import org.elasticsearch.xpack.core.ml.notifications.NotificationsIndex; import org.elasticsearch.xpack.core.rollup.job.RollupJob; +import org.elasticsearch.xpack.core.transform.transforms.persistence.TransformInternalIndexConstants; import org.junit.After; import org.junit.Before; @@ -75,7 +77,7 @@ public class XPackRestIT extends ESClientYamlSuiteTestCase { } /** - * Waits for the Security template and the Machine Learning templates to be created by the {@link MetaDataUpgrader} + * Waits for Machine Learning and Transform templates to be created by the {@link MetaDataUpgrader} */ private void waitForTemplates() throws Exception { if (installTemplates()) { @@ -86,7 +88,10 @@ public class XPackRestIT extends ESClientYamlSuiteTestCase { MlMetaIndex.INDEX_NAME, AnomalyDetectorsIndexFields.STATE_INDEX_PREFIX, AnomalyDetectorsIndex.jobResultsIndexPrefix(), - AnomalyDetectorsIndex.configIndexName())); + AnomalyDetectorsIndex.configIndexName(), + TransformInternalIndexConstants.AUDIT_INDEX, + TransformInternalIndexConstants.LATEST_INDEX_NAME + )); for (String template : templates) { awaitCallApi("indices.exists_template", singletonMap("name", template), emptyList(),