2019-06-13 02:46:55 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2017-01-04 14:27:53 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
2015-12-10 09:34:30 -05:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2019-06-04 16:50:23 -04:00
|
|
|
testCompile project(":x-pack:plugin:core")
|
2015-12-10 09:34:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// bring in graph rest test suite
|
|
|
|
task copyGraphRestTests(type: Copy) {
|
|
|
|
into project.sourceSets.test.output.resourcesDir
|
2018-01-27 00:48:30 -05:00
|
|
|
from project(xpackProject('plugin').path).sourceSets.test.resources.srcDirs
|
2015-12-10 09:34:30 -05:00
|
|
|
include 'rest-api-spec/test/graph/**'
|
|
|
|
}
|
|
|
|
|
2019-06-13 02:46:55 -04:00
|
|
|
integTest.dependsOn copyGraphRestTests
|
|
|
|
|
|
|
|
testClusters.integTest {
|
|
|
|
distribution = "DEFAULT"
|
2018-03-21 23:09:44 -04:00
|
|
|
setting 'xpack.security.enabled', 'true'
|
2019-06-13 02:46:55 -04:00
|
|
|
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'
|
2015-12-10 09:34:30 -05:00
|
|
|
}
|