mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
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:
parent
29243f7001
commit
3401afdf35
@ -22,6 +22,8 @@ dependencies {
|
|||||||
|
|
||||||
// baz - this goes away after we separate out the actions #27759
|
// 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-watcher:${version}"
|
||||||
|
|
||||||
|
testCompile "org.elasticsearch.plugin:x-pack-ilm:${version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
||||||
|
@ -10,6 +10,7 @@ import org.elasticsearch.license.LicenseService;
|
|||||||
import org.elasticsearch.license.XPackLicenseState;
|
import org.elasticsearch.license.XPackLicenseState;
|
||||||
import org.elasticsearch.xpack.core.LocalStateCompositeXPackPlugin;
|
import org.elasticsearch.xpack.core.LocalStateCompositeXPackPlugin;
|
||||||
import org.elasticsearch.xpack.core.ssl.SSLService;
|
import org.elasticsearch.xpack.core.ssl.SSLService;
|
||||||
|
import org.elasticsearch.xpack.indexlifecycle.IndexLifecycle;
|
||||||
import org.elasticsearch.xpack.watcher.Watcher;
|
import org.elasticsearch.xpack.watcher.Watcher;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
@ -47,5 +48,6 @@ public class LocalStateMonitoring extends LocalStateCompositeXPackPlugin {
|
|||||||
return thisVar.getLicenseState();
|
return thisVar.getLicenseState();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
plugins.add(new IndexLifecycle(settings));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user