From aaf1762bd6eca6bdce77a75d7a683db5d8ed8c92 Mon Sep 17 00:00:00 2001 From: javanna Date: Tue, 14 Oct 2014 10:32:45 +0200 Subject: [PATCH] [TEST] adapted users_roles tests to new format role:users Original commit: elastic/x-pack-elasticsearch@d1aef6900c87e8c40a331106fc268e20782177e9 --- .../shield/authc/esusers/FileUserRolesStoreTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/shield/authc/esusers/FileUserRolesStoreTests.java b/src/test/java/org/elasticsearch/shield/authc/esusers/FileUserRolesStoreTests.java index 7e429820979..f62ac362dd8 100644 --- a/src/test/java/org/elasticsearch/shield/authc/esusers/FileUserRolesStoreTests.java +++ b/src/test/java/org/elasticsearch/shield/authc/esusers/FileUserRolesStoreTests.java @@ -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"); }