mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-05 18:39:14 +00:00
* Replace compile configuration usage with api (#58451) - Use java-library instead of plugin to allow api configuration usage - Remove explicit references to runtime configurations in dependency declarations - Make test runtime classpath input for testing convention - required as java library will by default not have build jar file - jar file is now explicit input of the task and gradle will ensure its properly build * Fix compile usages in 7.x branch
26 lines
919 B
Groovy
26 lines
919 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'))
|
|
testImplementation project(path: xpackModule('eql:qa:common'))
|
|
}
|
|
|
|
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"
|
|
}
|