2017-12-13 10:19:31 -05:00
|
|
|
dependencies {
|
|
|
|
testCompile(project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Project mainProject = project
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
// Use resources from the parent project in subprojects
|
|
|
|
sourceSets {
|
|
|
|
test {
|
|
|
|
java {
|
|
|
|
srcDirs = ["${mainProject.projectDir}/src/test/java"]
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDirs = ["${mainProject.projectDir}/src/test/resources"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile(project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
2017-12-27 20:04:07 -05:00
|
|
|
testCompile project(':x-pack-elasticsearch:plugin:core')
|
2017-12-13 10:19:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
integTestCluster {
|
|
|
|
// Setup auditing so we can use it in some tests
|
|
|
|
setting 'xpack.security.audit.enabled', 'true'
|
|
|
|
setting 'xpack.security.audit.outputs', 'logfile'
|
|
|
|
// Setup roles used by tests
|
|
|
|
extraConfigFile 'x-pack/roles.yml', '../roles.yml'
|
|
|
|
/* Setup the one admin user that we run the tests as.
|
|
|
|
* Tests use "run as" to get different users. */
|
|
|
|
setupCommand 'setupUser#test_admin',
|
|
|
|
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'x-pack-test-password', '-r', 'superuser'
|
|
|
|
// Subprojects override the wait condition to work properly with security
|
|
|
|
}
|
|
|
|
|
|
|
|
integTestRunner {
|
|
|
|
systemProperty 'tests.audit.logfile',
|
|
|
|
"${ -> integTest.nodes[0].homeDir}/logs/${ -> integTest.nodes[0].clusterName }_access.log"
|
|
|
|
}
|
|
|
|
|
2017-12-15 10:42:18 -05:00
|
|
|
runqa {
|
2017-12-13 10:19:31 -05:00
|
|
|
// Setup auditing so we can use it in some tests
|
|
|
|
setting 'xpack.security.audit.enabled', 'true'
|
|
|
|
setting 'xpack.security.audit.outputs', 'logfile'
|
|
|
|
// Setup roles used by tests
|
|
|
|
extraConfigFile 'x-pack/roles.yml', '../roles.yml'
|
|
|
|
/* Setup the one admin user that we run the tests as.
|
|
|
|
* Tests use "run as" to get different users. */
|
|
|
|
setupCommand 'setupUser#test_admin',
|
|
|
|
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'x-pack-test-password', '-r', 'superuser'
|
|
|
|
}
|
|
|
|
}
|