You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steven Willis (JIRA)" <ji...@apache.org> on 2012/07/19 18:24:35 UTC
[jira] [Updated] (HADOOP-8514) Failed tests:
testLocalHostNameForNullOrWild
[ https://issues.apache.org/jira/browse/HADOOP-8514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Willis updated HADOOP-8514:
----------------------------------
Attachment: HADOOP-8514.patch
Here's a patch for xieguiming
> 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.
> 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