This is an automated email from the ASF dual-hosted git repository. spolavarapu pushed a commit to branch ranger-2.2 in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.2 by this push: new 26127d6 RANGER-3112: Fixed Ranger usersync test failures 26127d6 is described below commit 26127d6bf438e1c506c2ec398f2d6eb96b6f84ee Author: Sailaja Polavarapu <spolavar...@cloudera.com> AuthorDate: Mon Dec 14 17:50:35 2020 -0800 RANGER-3112: Fixed Ranger usersync test failures --- .../apache/ranger/unixusersync/process/TestUnixUserGroupBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ugsync/src/test/java/org/apache/ranger/unixusersync/process/TestUnixUserGroupBuilder.java b/ugsync/src/test/java/org/apache/ranger/unixusersync/process/TestUnixUserGroupBuilder.java index 0de95ad..30820ce 100644 --- a/ugsync/src/test/java/org/apache/ranger/unixusersync/process/TestUnixUserGroupBuilder.java +++ b/ugsync/src/test/java/org/apache/ranger/unixusersync/process/TestUnixUserGroupBuilder.java @@ -61,7 +61,7 @@ public class TestUnixUserGroupBuilder { assertThat(name, anyOf(equalTo("wheel"), equalTo("root"))); Map<String, Set<String>> groupUsers = builder.getGroupUserListMap(); - Set<String> users = groupUsers.get("root"); + Set<String> users = groupUsers.get(name); assertNotNull(users); assertThat(users, anyOf(hasItem("wheel"), hasItem("root"))); @@ -79,7 +79,7 @@ public class TestUnixUserGroupBuilder { assertThat(name, anyOf(equalTo("wheel"), equalTo("root"))); Map<String, Set<String>> groupUsers = builder.getGroupUserListMap(); - Set<String> users = groupUsers.get("root"); + Set<String> users = groupUsers.get(name); assertNotNull(users); assertThat(users, anyOf(hasItem("wheel"), hasItem("root"))); }