mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Nit fix test randomInt bound
Relates 2b789fa3e6f743632066
This commit is contained in:
parent
2b789fa3e6
commit
4e837599b3
@ -550,7 +550,7 @@ public class RBACEngineTests extends ESTestCase {
|
||||
Authentication authentication = mock(Authentication.class);
|
||||
when(authentication.getUser()).thenReturn(user);
|
||||
final String patternPrefix = RestrictedIndicesNames.ASYNC_SEARCH_PREFIX.substring(0,
|
||||
randomIntBetween(1, RestrictedIndicesNames.ASYNC_SEARCH_PREFIX.length() - 2));
|
||||
randomIntBetween(2, RestrictedIndicesNames.ASYNC_SEARCH_PREFIX.length() - 2));
|
||||
Role role = Role.builder("role")
|
||||
.add(FieldPermissions.DEFAULT, null, IndexPrivilege.INDEX, false, patternPrefix + "*")
|
||||
.build();
|
||||
|
Loading…
x
Reference in New Issue
Block a user