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'
|
2020-07-06 15:16:26 -04:00
|
|
|
apply plugin: 'elasticsearch.rest-resources'
|
2015-12-10 09:34:30 -05:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(":x-pack:plugin:core")
|
2015-12-10 09:34:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// bring in graph rest test suite
|
2020-02-26 09:13:41 -05:00
|
|
|
restResources {
|
|
|
|
restApi {
|
2020-03-19 13:28:59 -04:00
|
|
|
includeCore '_common', 'cluster', 'indices', 'index'
|
2020-02-26 09:13:41 -05:00
|
|
|
includeXpack 'graph'
|
|
|
|
}
|
|
|
|
restTests {
|
|
|
|
includeXpack 'graph'
|
|
|
|
}
|
2015-12-10 09:34:30 -05:00
|
|
|
}
|
|
|
|
|
2019-06-13 02:46:55 -04:00
|
|
|
testClusters.integTest {
|
2019-07-15 20:53:05 -04:00
|
|
|
testDistribution = '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
|
|
|
}
|