Skip to content

Commit 428fd72

Browse files
authored
Use asterisk instead of empty string to clear all cached entries (#63907) (#63989)
The officially supported way to clearing all entries from a cache is to use wildcard of either * or _all. Though empty string has the same effect, it was never intended. Therefore the tests should not use empty string and this PR changes them to use *.
1 parent f251767 commit 428fd72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/api_key/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ teardown:
195195

196196
- do:
197197
security.clear_api_key_cache:
198-
ids: ""
198+
ids: "*"
199199

200200
- match: { _nodes.failed: 0 }
201201

x-pack/plugin/src/test/resources/rest-api-spec/test/privileges/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,5 @@ teardown:
338338

339339
- do:
340340
security.clear_cached_privileges:
341-
application: ""
341+
application: "*"
342342
- match: { _nodes.failed: 0 }

0 commit comments

Comments
 (0)