HADOOP-12407. Test failing: hadoop.ipc.TestSaslRPC. (stevel)

This commit is contained in:
Steve Loughran 2015-09-12 18:55:42 +01:00
parent 4992f075c8
commit 3f685cd571
2 changed files with 10 additions and 1 deletions

View File

@ -1115,6 +1115,8 @@ Release 2.8.0 - UNRELEASED
HADOOP-12388. Fix components' version information in the web page HADOOP-12388. Fix components' version information in the web page
'About the Cluster'. (Jun Gong via zxu) 'About the Cluster'. (Jun Gong via zxu)
HADOOP-12407. Test failing: hadoop.ipc.TestSaslRPC. (stevel)
Release 2.7.2 - UNRELEASED Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -558,9 +558,16 @@ public class TestSaslRPC {
e = se; e = se;
} }
assertNotNull(e); 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, private void runNegotiation(CallbackHandler clientCbh,
CallbackHandler serverCbh) CallbackHandler serverCbh)