2020-06-25 14:11:57 -04:00
|
|
|
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
testImplementation project(path: xpackModule('eql'))
|
|
|
|
testImplementation project(path: xpackModule('eql:qa:common'))
|
2020-06-25 14:11:57 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
testClusters.integTest {
|
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
if (BuildParams.isSnapshotBuild()) {
|
|
|
|
setting 'xpack.eql.enabled', 'true'
|
|
|
|
}
|
|
|
|
setting 'xpack.license.self_generated.type', 'basic'
|
|
|
|
setting 'xpack.monitoring.collection.enabled', 'true'
|
|
|
|
setting 'xpack.security.enabled', 'true'
|
|
|
|
numberOfNodes = 2
|
|
|
|
extraConfigFile 'roles.yml', file('roles.yml')
|
|
|
|
user username: "test-admin", password: 'x-pack-test-password', role: "test-admin"
|
|
|
|
user username: "user1", password: 'x-pack-test-password', role: "user1"
|
|
|
|
user username: "user2", password: 'x-pack-test-password', role: "user2"
|
|
|
|
}
|