You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2013/03/01 23:15:16 UTC
[jira] [Created] (HADOOP-9352) Expose UGI.setLoginUser for tests
Daryn Sharp created HADOOP-9352:
-----------------------------------
Summary: Expose UGI.setLoginUser for tests
Key: HADOOP-9352
URL: https://issues.apache.org/jira/browse/HADOOP-9352
Project: Hadoop Common
Issue Type: Improvement
Components: security
Affects Versions: 2.0.0-alpha, 0.23.0, 3.0.0
Reporter: Daryn Sharp
Assignee: Daryn Sharp
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira