HADOOP-12407. Test failing: hadoop.ipc.TestSaslRPC. (stevel)
This commit is contained in:
parent
c4128165b5
commit
c8fe31e03a
|
@ -606,6 +606,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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue