[TEST] adapted users_roles tests to new format role:users
Original commit: elastic/x-pack-elasticsearch@d1aef6900c
This commit is contained in:
parent
78377c7cd2
commit
aaf1762bd6
|
@ -117,7 +117,7 @@ public class FileUserRolesStoreTests extends ElasticsearchTestCase {
|
|||
ThreadPool threadPool = null;
|
||||
try {
|
||||
threadPool = new ThreadPool("test");
|
||||
File usersRoles = writeUsersRoles("admin:role1");
|
||||
File usersRoles = writeUsersRoles("role1:admin");
|
||||
Settings settings = ImmutableSettings.builder()
|
||||
.put("watcher.enabled", "false")
|
||||
.put("shield.authc.esusers.files.users_roles", usersRoles.toPath().toAbsolutePath())
|
||||
|
@ -140,7 +140,7 @@ public class FileUserRolesStoreTests extends ElasticsearchTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testThatEmptyUserNameDoesNotThrowException() throws Exception {
|
||||
public void testThatEmptyRoleNameDoesNotThrowException() throws Exception {
|
||||
assertInvalidInputIsSilentlyIgnored(":user1,user2");
|
||||
assertInvalidInputIsSilentlyIgnored(" :user1,user2");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue