Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.23.0, 2.0.0-alpha, 3.0.0-alpha1
-
None
Description
The UGI.setLoginUser method is not publicly exposed, which makes it impossible to correctly test code executed outside of an explicit doAs. getCurrentUser/getLoginUser will always vivify the login user from the user running the test, and not an arbitrary user to be determined by the test. The method is documented with why it's not ready for prime-time, but it's good enough for tests.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-9476 Some test cases in TestUserGroupInformation fail if ran after testSetLoginUser.
- Closed
- is depended upon by
-
HDFS-4542 Webhdfs doesn't support secure proxy users
- Closed
- is required by
-
HDFS-4576 Webhdfs authentication issues
- Closed