HADOOP-11267. TestSecurityUtil fails when run with JDK8 because of empty principal names. Contributed by Stephen Chu.

This commit is contained in:
Haohui Mai 2014-11-05 15:25:35 -08:00
parent 44f9790247
commit 1857623634
2 changed files with 3 additions and 4 deletions

View File

@ -60,6 +60,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11266. Remove no longer supported activation properties for packaging HADOOP-11266. Remove no longer supported activation properties for packaging
from pom. (Masatake Iwasaki via wheat9) from pom. (Masatake Iwasaki via wheat9)
HADOOP-11267. TestSecurityUtil fails when run with JDK8 because of empty
principal names. (Stephen Chu via wheat9)
Release 2.6.0 - UNRELEASED Release 2.6.0 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -54,12 +54,8 @@ public class TestSecurityUtil {
(null)); (null));
assertFalse(SecurityUtil.isTGSPrincipal assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("blah"))); (new KerberosPrincipal("blah")));
assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("")));
assertFalse(SecurityUtil.isTGSPrincipal assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("krbtgt/hello"))); (new KerberosPrincipal("krbtgt/hello")));
assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("/@")));
assertFalse(SecurityUtil.isTGSPrincipal assertFalse(SecurityUtil.isTGSPrincipal
(new KerberosPrincipal("krbtgt/foo@FOO"))); (new KerberosPrincipal("krbtgt/foo@FOO")));
} }