mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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:with-security:integTestRunner'
|
||||||
|
check.dependsOn 'qa:multi-node:integTestRunner'
|
||||||
|
|
||||||
integTestCluster {
|
integTest.enabled = false
|
||||||
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'))
|
|
||||||
}
|
|
||||||
|
|
||||||
run {
|
run {
|
||||||
plugin xpackModule('core')
|
plugin xpackModule('core')
|
||||||
|
20
x-pack/plugin/ilm/qa/multi-node/build.gradle
Normal file
20
x-pack/plugin/ilm/qa/multi-node/build.gradle
Normal 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'
|
||||||
|
|
||||||
|
}
|
@ -72,7 +72,7 @@ import static org.hamcrest.core.Is.is;
|
|||||||
import static org.hamcrest.core.IsNull.nullValue;
|
import static org.hamcrest.core.IsNull.nullValue;
|
||||||
|
|
||||||
@ESIntegTestCase.ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ESIntegTestCase.ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
public class IndexLifecycleInitialisationIT extends ESIntegTestCase {
|
public class IndexLifecycleInitialisationTests extends ESIntegTestCase {
|
||||||
private Settings settings;
|
private Settings settings;
|
||||||
private LifecyclePolicy lifecyclePolicy;
|
private LifecyclePolicy lifecyclePolicy;
|
||||||
private Phase mockPhase;
|
private Phase mockPhase;
|
Loading…
x
Reference in New Issue
Block a user