OpenSearch/x-pack/plugin/graph/qa/with-security/build.gradle

31 lines
904 B
Groovy

apply plugin: 'elasticsearch.testclusters'
apply plugin: 'elasticsearch.standalone-rest-test'
apply plugin: 'elasticsearch.rest-test'
apply plugin: 'elasticsearch.rest-resources'
dependencies {
testImplementation project(":x-pack:plugin:core")
}
// bring in graph rest test suite
restResources {
restApi {
includeCore '_common', 'cluster', 'indices', 'index'
includeXpack 'graph'
}
restTests {
includeXpack 'graph'
}
}
testClusters.integTest {
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'
}