Skip to content

Commit

Permalink
Add ILM plugin for MonitoringIT tests (#39271)
Browse files Browse the repository at this point in the history
Without this, when creating the watch history indices they complain about there
being no such setting as `index.lifecycle.name`.

Relates to #38805
  • Loading branch information
dakrone committed Feb 22, 2019
1 parent 08c0437 commit c0bed13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugin/monitoring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
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;
Expand Down Expand Up @@ -47,5 +48,6 @@ protected XPackLicenseState getLicenseState() {
return thisVar.getLicenseState();
}
});
plugins.add(new IndexLifecycle(settings));
}
}

0 comments on commit c0bed13

Please sign in to comment.