2019-06-18 04:51:20 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2019-04-11 03:13:03 -04:00
|
|
|
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')
|
2019-04-11 03:13:03 -04:00
|
|
|
}
|
|
|
|
|
2019-06-18 04:51:20 -04:00
|
|
|
testClusters.integTest {
|
2019-07-15 20:53:05 -04:00
|
|
|
testDistribution = 'DEFAULT'
|
2019-06-18 04:51:20 -04:00
|
|
|
numberOfNodes = 2
|
2019-04-11 03:13:03 -04:00
|
|
|
|
|
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
setting 'xpack.license.self_generated.type', 'basic'
|
|
|
|
setting 'xpack.security.enabled', 'true'
|
2019-11-28 23:01:20 -05:00
|
|
|
setting 'xpack.security.ssl.diagnose.trust', 'true'
|
2019-04-11 03:13:03 -04:00
|
|
|
setting 'xpack.security.http.ssl.enabled', 'false'
|
|
|
|
setting 'xpack.security.transport.ssl.enabled', 'false'
|
2019-04-15 04:08:44 -04:00
|
|
|
setting 'xpack.security.authc.token.enabled', 'true'
|
|
|
|
setting 'xpack.security.authc.api_key.enabled', 'true'
|
2019-04-11 03:13:03 -04:00
|
|
|
|
2019-06-18 04:51:20 -04:00
|
|
|
extraConfigFile 'roles.yml', file('src/test/resources/roles.yml')
|
|
|
|
user username: "admin_user", password: "admin-password"
|
|
|
|
user username: "security_test_user", password: "security-test-password", role: "security_test_role"
|
2019-04-11 03:13:03 -04:00
|
|
|
}
|