-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Shard level request cache is improved to work correctly at all time. Also ensure profiling and suggester are properly disabled when not supported.
- Loading branch information
Showing
8 changed files
with
230 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
...uster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/110_dls_fls.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
setup: | ||
- skip: | ||
features: headers | ||
|
||
- do: | ||
cluster.health: | ||
wait_for_status: yellow | ||
|
||
- do: | ||
security.put_user: | ||
username: "dls_fls_user" | ||
body: > | ||
{ | ||
"password": "s3krit-password", | ||
"roles" : [ "dls_fls_role" ] | ||
} | ||
--- | ||
teardown: | ||
- do: | ||
security.delete_user: | ||
username: "dls_fls_user" | ||
ignore: 404 | ||
|
||
--- | ||
"Search with document and field level security": | ||
- do: | ||
search: | ||
rest_total_hits_as_int: true | ||
request_cache: true | ||
index: my_remote_cluster:shared_index | ||
|
||
- match: { hits.total: 2} | ||
- length: { hits.hits.0._source: 3 } | ||
- match: { hits.hits.0._source.secret: "sesame" } | ||
|
||
- do: | ||
headers: { Authorization: "Basic ZGxzX2Zsc191c2VyOnMza3JpdC1wYXNzd29yZA==" } | ||
search: | ||
rest_total_hits_as_int: true | ||
ccs_minimize_roundtrips: false | ||
request_cache: true | ||
index: my_remote_cluster:shared_index | ||
|
||
- match: { hits.total: 1} | ||
- length: { hits.hits.0._source: 2 } | ||
- is_true: hits.hits.0._source.public | ||
- match: { hits.hits.0._source.name: "doc 1" } | ||
|
||
--- | ||
"Async search with document and field level security": | ||
- skip: | ||
version: " - 7.6.99" | ||
reason: "async search available since 7.7" | ||
|
||
- do: | ||
async_search.submit: | ||
index: my_remote_cluster:shared_index | ||
wait_for_completion_timeout: 10s | ||
|
||
- match: { response.hits.total.value: 2} | ||
- length: { response.hits.hits.0._source: 3 } | ||
- match: { response.hits.hits.0._source.secret: "sesame" } | ||
|
||
- do: | ||
headers: { Authorization: "Basic ZGxzX2Zsc191c2VyOnMza3JpdC1wYXNzd29yZA==" } | ||
async_search.submit: | ||
index: my_remote_cluster:shared_index | ||
wait_for_completion_timeout: 10s | ||
|
||
- match: { response.hits.total.value: 1} | ||
- length: { response.hits.hits.0._source: 2 } | ||
- is_true: response.hits.hits.0._source.public | ||
- match: { response.hits.hits.0._source.name: "doc 1" } | ||
|
Oops, something went wrong.