Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
(unfortunately can't test this locally for some reason)

Change-Id: I81c7f4fe2243c79f314913507e96782dbd45045f
  • Loading branch information
tomicooler committed Oct 4, 2023
1 parent b9f156c commit b548e39
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@


import static org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileController.TLDIR_PERMISSIONS;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
Expand Down Expand Up @@ -109,6 +110,7 @@ private static void setupCustomUserMocks(LogAggregationFileController controller
"not_yarn_user", "yarn_group", new Path(path))).when(fs)
.getFileStatus(any(Path.class));
doReturn(fs).when(controller).getFileSystem(any(Configuration.class));
doNothing().when(controller).initInternal(any(Configuration.class));

UserGroupInformation ugi = UserGroupInformation.createUserForTesting(
"yarn_user", new String[]{"yarn_group", "other_group"});
Expand Down

0 comments on commit b548e39

Please sign in to comment.