mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 11:57:41 +02:00
fixing the test env deploy script + small fix in unit tests
This commit is contained in:
parent
ab9cd664ec
commit
fc98b1bd70
2 changed files with 6 additions and 9 deletions
|
@ -105,7 +105,8 @@ class TestError(object):
|
|||
try:
|
||||
ldapc.simple_bind_s(inv.binddn, inv.bindpassword)
|
||||
except ldap.SERVER_DOWN as e:
|
||||
assert e[0]['info'] == 'TLS: hostname does not match CN in peer certificate'
|
||||
assert e[0]['info'] == 'TLS: hostname does not match CN in peer certificate' or \
|
||||
e[0]['info'] == '(unknown error code)'
|
||||
else:
|
||||
raise AssertionError("expected an exception")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue