6
6
package org .elasticsearch .xpack .test .rest ;
7
7
8
8
import com .carrotsearch .randomizedtesting .annotations .ParametersFactory ;
9
+
9
10
import org .apache .http .HttpStatus ;
10
11
import org .elasticsearch .ElasticsearchException ;
11
12
import org .elasticsearch .common .CheckedFunction ;
24
25
import org .elasticsearch .xpack .core .ml .job .persistence .AnomalyDetectorsIndexFields ;
25
26
import org .elasticsearch .xpack .core .ml .notifications .NotificationsIndex ;
26
27
import org .elasticsearch .xpack .core .rollup .job .RollupJob ;
28
+ import org .elasticsearch .xpack .core .transform .transforms .persistence .TransformInternalIndexConstants ;
27
29
import org .junit .After ;
28
30
import org .junit .Before ;
29
31
@@ -75,7 +77,7 @@ public void setupForTests() throws Exception {
75
77
}
76
78
77
79
/**
78
- * Waits for the Security template and the Machine Learning templates to be created by the {@link MetaDataUpgrader}
80
+ * Waits for Machine Learning and Transform templates to be created by the {@link MetaDataUpgrader}
79
81
*/
80
82
private void waitForTemplates () throws Exception {
81
83
if (installTemplates ()) {
@@ -86,7 +88,10 @@ private void waitForTemplates() throws Exception {
86
88
MlMetaIndex .INDEX_NAME ,
87
89
AnomalyDetectorsIndexFields .STATE_INDEX_PREFIX ,
88
90
AnomalyDetectorsIndex .jobResultsIndexPrefix (),
89
- AnomalyDetectorsIndex .configIndexName ()));
91
+ AnomalyDetectorsIndex .configIndexName (),
92
+ TransformInternalIndexConstants .AUDIT_INDEX ,
93
+ TransformInternalIndexConstants .LATEST_INDEX_NAME
94
+ ));
90
95
91
96
for (String template : templates ) {
92
97
awaitCallApi ("indices.exists_template" , singletonMap ("name" , template ), emptyList (),
0 commit comments