26 lines
971 B
Groovy
26 lines
971 B
Groovy
|
import org.elasticsearch.gradle.info.BuildParams
|
||
|
|
||
|
apply plugin: 'elasticsearch.testclusters'
|
||
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
||
|
apply plugin: 'elasticsearch.rest-test'
|
||
|
|
||
|
dependencies {
|
||
|
testImplementation project(path: xpackModule('eql'), configuration: 'runtime')
|
||
|
testImplementation project(path: xpackModule('eql:qa:common'), configuration: 'runtime')
|
||
|
}
|
||
|
|
||
|
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"
|
||
|
}
|