hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From x...@apache.org
Subject hadoop git commit: HADOOP-13815. TestKMS#testDelegationTokensOpsSimple and TestKMS#testDelegationTokensOpsKerberized Fails in Trunk.
Date Wed, 16 Nov 2016 00:27:23 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 3497221fc -> efc9ffc3b


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

(cherry picked from commit 61c0bedf775e6e794d4704485ec2c41a95aecae9)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/efc9ffc3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/efc9ffc3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/efc9ffc3

Branch: refs/heads/branch-2
Commit: efc9ffc3b62a3de7660ab6fadeb59c8c2bca368b
Parents: 3497221
Author: Xiao Chen <xiao@apache.org>
Authored: Tue Nov 15 16:26:27 2016 -0800
Committer: Xiao Chen <xiao@apache.org>
Committed: Tue Nov 15 16:26:49 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/efc9ffc3/hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
b/hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
index a4db176..edb4cfc 100644
--- a/hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
+++ b/hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
@@ -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);
               }
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message