HADOOP-13815. TestKMS#testDelegationTokensOpsSimple and TestKMS#testDelegationTokensOpsKerberized Fails in Trunk.

(cherry picked from commit 61c0bedf77)
This commit is contained in:
Xiao Chen 2016-11-15 16:26:27 -08:00
parent 3497221fcc
commit efc9ffc3b6
1 changed files with 4 additions and 1 deletions

View File

@ -1820,8 +1820,11 @@ public class TestKMS {
Assert.fail("client should not be allowed to renew token with"
+ "renewer=client1");
} catch (Exception e) {
final DelegationTokenIdentifier identifier =
(DelegationTokenIdentifier) token.decodeIdentifier();
GenericTestUtils.assertExceptionContains(
"tries to renew a token with renewer", e);
"tries to renew a token (" + identifier
+ ") with non-matching renewer", e);
}
}