[TEST] adapted users_roles tests to new format role:users

Original commit: elastic/x-pack-elasticsearch@d1aef6900c
This commit is contained in:
javanna 2014-10-14 10:32:45 +02:00 committed by Luca Cavanna
parent 78377c7cd2
commit aaf1762bd6
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}