28 lines
772 B
Groovy
28 lines
772 B
Groovy
apply plugin: 'elasticsearch.yaml-rest-test'
|
|
|
|
dependencies {
|
|
yamlRestTestImplementation project(":x-pack:plugin:core")
|
|
}
|
|
|
|
// bring in graph rest test suite
|
|
restResources {
|
|
restApi {
|
|
includeCore '_common', 'cluster', 'indices', 'index'
|
|
includeXpack 'graph'
|
|
}
|
|
restTests {
|
|
includeXpack 'graph'
|
|
}
|
|
}
|
|
|
|
testClusters.all {
|
|
testDistribution = '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'
|
|
}
|