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:
Gordon Brown 2018-10-18 13:33:33 -06:00 committed by GitHub
parent 09067c8942
commit 9cb0bb8b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 12 deletions

View File

@ -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')

View File

@ -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'
}

View File

@ -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;