MAPREDUCE-6750. Fix TestHSAdminServer#testRefreshSuperUserGroups (Kihwal Lee via Varun Saxena)
This commit is contained in:
parent
3cd386bd97
commit
c4b77aed7e
@ -187,7 +187,8 @@ public void testRefreshSuperUserGroups() throws Exception {
|
|||||||
when(ugi.getRealUser()).thenReturn(superUser);
|
when(ugi.getRealUser()).thenReturn(superUser);
|
||||||
when(superUser.getShortUserName()).thenReturn("superuser");
|
when(superUser.getShortUserName()).thenReturn("superuser");
|
||||||
when(superUser.getUserName()).thenReturn("superuser");
|
when(superUser.getUserName()).thenReturn("superuser");
|
||||||
when(ugi.getGroupNames()).thenReturn(new String[] { "group3" });
|
when(ugi.getGroups())
|
||||||
|
.thenReturn(Arrays.asList(new String[] { "group3" }));
|
||||||
when(ugi.getUserName()).thenReturn("regularUser");
|
when(ugi.getUserName()).thenReturn("regularUser");
|
||||||
|
|
||||||
// Set super user groups not to include groups of regularUser
|
// Set super user groups not to include groups of regularUser
|
||||||
|
Loading…
Reference in New Issue
Block a user