-
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
10 changed files
with
188 additions
and
25 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
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
48 changes: 48 additions & 0 deletions
48
...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,48 @@ | ||
--- | ||
setup: | ||
- skip: | ||
features: headers | ||
|
||
- do: | ||
cluster.health: | ||
wait_for_status: yellow | ||
|
||
- do: | ||
xpack.security.put_user: | ||
username: "dls_fls_user" | ||
body: > | ||
{ | ||
"password": "s3krit-password", | ||
"roles" : [ "dls_fls_role" ] | ||
} | ||
--- | ||
teardown: | ||
- do: | ||
xpack.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 | ||
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" } |
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