HADOOP-11267. TestSecurityUtil fails when run with JDK8 because of empty principal names. Contributed by Stephen Chu.
(cherry picked from commit 8549fa5dc9
)
This commit is contained in:
parent
46c7a8977a
commit
da70755b4d
|
@ -21,6 +21,9 @@ Release 2.6.3 - UNRELEASED
|
|||
HADOOP-10668. TestZKFailoverControllerStress#testExpireBackAndForth
|
||||
occasionally fails. (Ming Ma via cnauroth)
|
||||
|
||||
HADOOP-11267. TestSecurityUtil fails when run with JDK8 because of empty
|
||||
principal names. (Stephen Chu via wheat9)
|
||||
|
||||
Release 2.6.2 - 2015-10-28
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -54,12 +54,8 @@ public class TestSecurityUtil {
|
|||
(null));
|
||||
assertFalse(SecurityUtil.isTGSPrincipal
|
||||
(new KerberosPrincipal("blah")));
|
||||
assertFalse(SecurityUtil.isTGSPrincipal
|
||||
(new KerberosPrincipal("")));
|
||||
assertFalse(SecurityUtil.isTGSPrincipal
|
||||
(new KerberosPrincipal("krbtgt/hello")));
|
||||
assertFalse(SecurityUtil.isTGSPrincipal
|
||||
(new KerberosPrincipal("/@")));
|
||||
assertFalse(SecurityUtil.isTGSPrincipal
|
||||
(new KerberosPrincipal("krbtgt/foo@FOO")));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue