HADOOP-15280. TestKMS.testWebHDFSProxyUserKerb and 
TestKMS.testWebHDFSProxyUserSimple fail in trunk. Contributed by Bharat 
Viswanadham.


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

Branch: refs/heads/HDFS-7240
Commit: a906a226458a0b4c4b2df61d9bcf375a1d194925
Parents: 0c2b969
Author: Xiao Chen <x...@apache.org>
Authored: Thu Mar 8 10:16:37 2018 -0800
Committer: Xiao Chen <x...@apache.org>
Committed: Thu Mar 8 10:17:02 2018 -0800

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a906a226/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 f7ecf44..1189fbf 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
@@ -2667,7 +2667,11 @@ public class TestKMS {
                   kp.createKey("kbb", new KeyProvider.Options(conf));
                   Assert.fail();
                 } catch (Exception ex) {
-                  Assert.assertTrue(ex.getMessage(), 
ex.getMessage().contains("Forbidden"));
+                  GenericTestUtils.assertExceptionContains("Error while " +
+                      "authenticating with endpoint", ex);
+                  GenericTestUtils.assertExceptionContains("Forbidden", ex
+                      .getCause().getCause());
+
                 }
                 return null;
               }


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

Reply via email to