mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 17:09:18 +00:00
We believe there's no longer a need to be able to disable basic-license features completely using the "xpack.*.enabled" settings. If users don't want to use those features, they simply don't need to use them. Having such features always available lets us build more complex features that assume basic-license features are present. This commit deprecates settings of the form "xpack.*.enabled" for basic-license features, excluding "security", which is a special case. It also removes deprecated settings from integration tests and unit tests where they're not directly relevant; e.g. monitoring and ILM are no longer disabled in many integration tests.
52 lines
1.7 KiB
Groovy
52 lines
1.7 KiB
Groovy
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-test'
|
|
|
|
dependencies {
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
testCompile project(path: xpackModule('ccr'), configuration: 'runtime')
|
|
testCompile project(':x-pack:plugin:ccr:qa')
|
|
}
|
|
|
|
task 'leader-cluster'(type: RestIntegTestTask) {
|
|
mustRunAfter(precommit)
|
|
runner {
|
|
systemProperty 'tests.target_cluster', 'leader'
|
|
}
|
|
}
|
|
|
|
testClusters.'leader-cluster' {
|
|
testDistribution = 'DEFAULT'
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
setting 'xpack.security.enabled', 'true'
|
|
extraConfigFile 'roles.yml', file('leader-roles.yml')
|
|
user username: "test_admin", role: "superuser"
|
|
user username: "test_ccr", role: "ccruser"
|
|
}
|
|
|
|
task 'follow-cluster'(type: RestIntegTestTask) {
|
|
dependsOn 'leader-cluster'
|
|
runner {
|
|
useCluster testClusters.'leader-cluster'
|
|
systemProperty 'tests.target_cluster', 'follow'
|
|
nonInputProperties.systemProperty 'tests.leader_host', "${-> testClusters.'leader-cluster'.getAllHttpSocketURI().get(0)}"
|
|
}
|
|
}
|
|
|
|
testClusters.'follow-cluster' {
|
|
testDistribution = 'DEFAULT'
|
|
setting 'cluster.remote.leader_cluster.seeds', {
|
|
"\"${testClusters.'leader-cluster'.getAllTransportPortURI().join(",")}\""
|
|
}
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
setting 'xpack.security.enabled', 'true'
|
|
setting 'xpack.monitoring.collection.enabled', 'true'
|
|
extraConfigFile 'roles.yml', file('follower-roles.yml')
|
|
user username: "test_admin", role: "superuser"
|
|
user username: "test_ccr", role: "ccruser"
|
|
}
|
|
|
|
check.dependsOn 'follow-cluster'
|
|
test.enabled = false // no unit tests for multi-cluster-search, only the rest integration test
|