[ 
https://issues.apache.org/jira/browse/HADOOP-8514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steven Willis updated HADOOP-8514:
----------------------------------

          Description: Because of HADOOP-7988, and 
testLocalHostNameForNullOrWild failed.  (was: 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} )
    Affects Version/s: 2.0.0-alpha

Removing code from description since there's now a patch.
                
> 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, 2.0.0-alpha
>            Reporter: xieguiming
>            Priority: Minor
>         Attachments: HADOOP-8514.patch
>
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.

--
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

        

Reply via email to