Add ILM plugin for MonitoringIT tests (#39271)

Without this, when creating the watch history indices they complain about there
being no such setting as `index.lifecycle.name`.

Relates to #38805
This commit is contained in:
Lee Hinman 2019-02-21 21:42:53 -07:00 committed by Lee Hinman
parent 29243f7001
commit 3401afdf35
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@ dependencies {
// baz - this goes away after we separate out the actions #27759
testCompile "org.elasticsearch.plugin:x-pack-watcher:${version}"
testCompile "org.elasticsearch.plugin:x-pack-ilm:${version}"
}
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"

View File

@ -10,6 +10,7 @@ import org.elasticsearch.license.LicenseService;
import org.elasticsearch.license.XPackLicenseState;
import org.elasticsearch.xpack.core.LocalStateCompositeXPackPlugin;
import org.elasticsearch.xpack.core.ssl.SSLService;
import org.elasticsearch.xpack.indexlifecycle.IndexLifecycle;
import org.elasticsearch.xpack.watcher.Watcher;
import java.nio.file.Path;
@ -47,5 +48,6 @@ public class LocalStateMonitoring extends LocalStateCompositeXPackPlugin {
return thisVar.getLicenseState();
}
});
plugins.add(new IndexLifecycle(settings));
}
}