From c8fe31e03af0f2f3c4c1ed9a19ff55849355a11a Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Sat, 12 Sep 2015 18:55:42 +0100 Subject: [PATCH] HADOOP-12407. Test failing: hadoop.ipc.TestSaslRPC. (stevel) --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 3789f540c30..0136ad44a7d 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -606,6 +606,8 @@ Release 2.8.0 - UNRELEASED HADOOP-12388. Fix components' version information in the web page 'About the Cluster'. (Jun Gong via zxu) + HADOOP-12407. Test failing: hadoop.ipc.TestSaslRPC. (stevel) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java index f6ab38043ca..754b81147d9 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java @@ -558,9 +558,16 @@ public class TestSaslRPC { e = se; } assertNotNull(e); - assertEquals("PLAIN auth failed: wrong password", e.getMessage()); + String message = e.getMessage(); + assertContains("PLAIN auth failed", message); + assertContains("wrong password", message); } + private void assertContains(String expected, String text) { + assertNotNull("null text", text ); + assertTrue("No {" + expected + "} in {" + text + "}", + text.contains(expected)); + } private void runNegotiation(CallbackHandler clientCbh, CallbackHandler serverCbh)