Commit 42c2fa4
authored
[Test] Use real instance of ReservedRolesStore to avoid NPE (elastic#97185)
Since ReservedRolesStore must be properly initialized before calling real methods,
it is not possible to mock it and then still call real methods. Given that there is no real
need for CompositeRolesStoreTests to use mocked ReservedRolesStore, this PR
changes the test setup to use real instance and thus avoid NPE when accessing
RESERVED_ROLES property.
Fixes elastic#971721 parent 5486667 commit 42c2fa4
File tree
1 file changed
+1
-2
lines changed- x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2920 | 2920 | | |
2921 | 2921 | | |
2922 | 2922 | | |
2923 | | - | |
2924 | | - | |
| 2923 | + | |
2925 | 2924 | | |
2926 | 2925 | | |
2927 | 2926 | | |
| |||
0 commit comments