HADOOP-17340. TestLdapGroupsMapping failing -string mismatch in exception validation. (#2427). Contributed by Steve Loughran.
This commit is contained in:
parent
043cca01b1
commit
7cb5325dda
|
@ -389,8 +389,9 @@ public class TestLdapGroupsMapping extends TestLdapGroupsMappingBase {
|
||||||
fail("The LDAP query should have timed out!");
|
fail("The LDAP query should have timed out!");
|
||||||
} catch (NamingException ne) {
|
} catch (NamingException ne) {
|
||||||
LOG.debug("Got the exception while LDAP querying: ", ne);
|
LOG.debug("Got the exception while LDAP querying: ", ne);
|
||||||
assertExceptionContains("LDAP response read timed out, timeout used:" +
|
assertExceptionContains("LDAP response read timed out, timeout used",
|
||||||
connectionTimeoutMs + "ms", ne);
|
ne);
|
||||||
|
assertExceptionContains("" + connectionTimeoutMs, ne);
|
||||||
assertFalse(ne.getMessage().contains("remaining name"));
|
assertFalse(ne.getMessage().contains("remaining name"));
|
||||||
} finally {
|
} finally {
|
||||||
finLatch.countDown();
|
finLatch.countDown();
|
||||||
|
@ -444,8 +445,9 @@ public class TestLdapGroupsMapping extends TestLdapGroupsMappingBase {
|
||||||
fail("The LDAP query should have timed out!");
|
fail("The LDAP query should have timed out!");
|
||||||
} catch (NamingException ne) {
|
} catch (NamingException ne) {
|
||||||
LOG.debug("Got the exception while LDAP querying: ", ne);
|
LOG.debug("Got the exception while LDAP querying: ", ne);
|
||||||
assertExceptionContains("LDAP response read timed out, timeout used:" +
|
assertExceptionContains("LDAP response read timed out, timeout used",
|
||||||
readTimeoutMs + "ms", ne);
|
ne);
|
||||||
|
assertExceptionContains(""+ readTimeoutMs, ne);
|
||||||
assertExceptionContains("remaining name", ne);
|
assertExceptionContains("remaining name", ne);
|
||||||
} finally {
|
} finally {
|
||||||
finLatch.countDown();
|
finLatch.countDown();
|
||||||
|
|
Loading…
Reference in New Issue