mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
The submit async search action should not populate the thread context DLS/FLS permission set, because it is not currently authorised as an "indices request" and hence the permission set that it builds is incomplete and it overrides the DLS/FLS permission set of the actual spawned search request (which is built correctly).
22 lines
899 B
Groovy
22 lines
899 B
Groovy
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
dependencies {
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
testImplementation project(xpackModule('async-search'))
|
|
testImplementation project(':x-pack:plugin:async-search:qa')
|
|
}
|
|
|
|
testClusters.integTest {
|
|
testDistribution = 'DEFAULT'
|
|
numberOfNodes = 2
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
setting 'xpack.security.enabled', 'true'
|
|
extraConfigFile 'roles.yml', file('roles.yml')
|
|
user username: "test-admin", password: 'x-pack-test-password', role: "test-admin"
|
|
user username: "user1", password: 'x-pack-test-password', role: "user1"
|
|
user username: "user2", password: 'x-pack-test-password', role: "user2"
|
|
user username: "user_dls", password: 'x-pack-test-password', role: "user_dls"
|
|
}
|