28 lines
938 B
Groovy
28 lines
938 B
Groovy
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
dependencies {
|
|
testCompile project(":x-pack:plugin:core")
|
|
}
|
|
|
|
// bring in graph rest test suite
|
|
task copyGraphRestTests(type: Copy) {
|
|
into project.sourceSets.test.output.resourcesDir
|
|
from project(xpackProject('plugin').path).sourceSets.test.resources.srcDirs
|
|
include 'rest-api-spec/test/graph/**'
|
|
}
|
|
|
|
integTest.dependsOn copyGraphRestTests
|
|
|
|
testClusters.integTest {
|
|
distribution = "DEFAULT"
|
|
setting 'xpack.security.enabled', 'true'
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
extraConfigFile 'roles.yml', file('roles.yml')
|
|
user username: 'test_admin', password: 'x-pack-test-password'
|
|
user username: 'graph_explorer', password: 'x-pack-test-password', role: 'graph_explorer'
|
|
user username: 'no_graph_explorer', password: 'x-pack-test-password', role: 'no_graph_explorer'
|
|
}
|