[ 
https://issues.apache.org/jira/browse/HADOOP-9352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13593368#comment-13593368
 ] 

Hudson commented on HADOOP-9352:
--------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #544 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/544/])
    HADOOP-9352. Expose UGI.setLoginUser for tests (daryn) (Revision 1452340)

     Result = FAILURE
daryn : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1452340
Files : 
* 
/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
* 
/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
* 
/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java

                
> 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: 0.23.0, 2.0.0-alpha, 3.0.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>             Fix For: 3.0.0, 0.23.7, 2.0.4-beta
>
>         Attachments: HADOOP-9352.branch-23.patch, HADOOP-9352.patch
>
>
> 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

Reply via email to