hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8514) Failed tests: testLocalHostNameForNullOrWild
Date Tue, 19 Jun 2012 17:07:43 GMT

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

Aaron T. Myers commented on HADOOP-8514:
----------------------------------------

Hi xieguiming, TestSecurityUtil#testLocalHostNameForNullOrWild passes for me on my local box.
What environment do you see this test failing in?

Also, please attach a patch file containing the diff if you have a fix for this issue, rather
than including it in the JIRA description.
                
> Failed tests:   testLocalHostNameForNullOrWild
> ----------------------------------------------
>
>                 Key: HADOOP-8514
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.23.1
>            Reporter: xieguiming
>            Priority: Minor
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.
> We can modify like this:
> {code:title=TestSecurityUtil.java|borderStyle=solid}
>   @Test
>   public void testLocalHostNameForNullOrWild() throws Exception {
>     // add toLowerCase() here    
>     String local = SecurityUtil.getLocalHostName().toLowerCase();
>     assertEquals("hdfs/" + local + "@REALM",
>                  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", (String) null));
>     assertEquals("hdfs/" + local + "@REALM",
>                  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", "0.0.0.0"));
>   }
> {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message