Rework ILM build to separate integration tests (#34617)
Having integration tests separated from the unit tests in the qa directory works much more smoothly with our testing infrastructure, matches what other plugins do, and tests in a more "real" deployment scenario by having all plugins installed.
This commit is contained in:
parent
09067c8942
commit
9cb0bb8b9f
|
@ -19,18 +19,9 @@ dependencies {
|
|||
}
|
||||
|
||||
check.dependsOn 'qa:with-security:integTestRunner'
|
||||
check.dependsOn 'qa:multi-node:integTestRunner'
|
||||
|
||||
integTestCluster {
|
||||
numNodes = 4
|
||||
clusterName = 'ilm'
|
||||
setting 'xpack.security.enabled', 'false'
|
||||
setting 'xpack.watcher.enabled', 'false'
|
||||
setting 'xpack.monitoring.enabled', 'false'
|
||||
setting 'xpack.ml.enabled', 'false'
|
||||
setting 'xpack.ilm.enabled', 'true'
|
||||
setting 'indices.lifecycle.poll_interval', '2500ms'
|
||||
module project(xpackModule('core'))
|
||||
}
|
||||
integTest.enabled = false
|
||||
|
||||
run {
|
||||
plugin xpackModule('core')
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
apply plugin: 'elasticsearch.standalone-rest-test'
|
||||
apply plugin: 'elasticsearch.rest-test'
|
||||
|
||||
dependencies {
|
||||
testCompile project(path: xpackProject('plugin').path, configuration: 'testArtifacts')
|
||||
}
|
||||
|
||||
integTestCluster {
|
||||
numNodes = 4
|
||||
clusterName = 'ilm'
|
||||
|
||||
setting 'xpack.ilm.enabled', 'true'
|
||||
setting 'xpack.security.enabled', 'false'
|
||||
setting 'xpack.watcher.enabled', 'false'
|
||||
setting 'xpack.monitoring.enabled', 'false'
|
||||
setting 'xpack.ml.enabled', 'false'
|
||||
setting 'xpack.license.self_generated.type', 'trial'
|
||||
setting 'indices.lifecycle.poll_interval', '2500ms'
|
||||
|
||||
}
|
|
@ -72,7 +72,7 @@ import static org.hamcrest.core.Is.is;
|
|||
import static org.hamcrest.core.IsNull.nullValue;
|
||||
|
||||
@ESIntegTestCase.ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||
public class IndexLifecycleInitialisationIT extends ESIntegTestCase {
|
||||
public class IndexLifecycleInitialisationTests extends ESIntegTestCase {
|
||||
private Settings settings;
|
||||
private LifecyclePolicy lifecyclePolicy;
|
||||
private Phase mockPhase;
|
Loading…
Reference in New Issue