2020-03-16 22:30:07 -04:00
|
|
|
/*
|
|
|
|
* This QA project tests the security plugin when security is explicitlt disabled.
|
2020-04-17 15:04:17 -04:00
|
|
|
* It is intended to cover security functionality which is supposed to
|
2020-03-16 22:30:07 -04:00
|
|
|
* function in a specific way even if security is disabled on the cluster
|
|
|
|
* For example: If a cluster has a pipeline with the set_security_user processor
|
|
|
|
* defined, it should be not fail
|
|
|
|
*/
|
2020-04-17 15:04:17 -04:00
|
|
|
|
2020-03-16 22:30:07 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'default')
|
|
|
|
testImplementation project(path: xpackModule('security'), configuration: 'testArtifacts')
|
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2020-03-16 22:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
testClusters.integTest {
|
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
numberOfNodes = 2
|
|
|
|
|
|
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
// We run with a trial license, but explicitly disable security.
|
|
|
|
// This means the security plugin is loaded and all feature are permitted, but they are not enabled
|
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
setting 'xpack.security.enabled', 'false'
|
|
|
|
}
|