Module: check_mk
Branch: master
Commit: 6b73e21e63a414f3174da6c56027023617b394d4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6b73e21e63a414…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 17 20:15:24 2018 +0200
Improved LDAP unit tests
* Enabled group membership testing for nested groups
* Workaround some differences between python-ldap and MockLdap
modules in terms of encoding as it is currently used by Check_MK.
(See
http://www.python-ldap.org/en/latest/bytes_mode.html)
In our LDAP code we are converting all values received from
python-ldap to unicode strings. This should make it easy to switch
to bytes_mode=False by simply changing the value and remove the
decoding stuff from the LDAP connector.
Change-Id: Id169eebe45122d26c5196c8b6a6b166d0cd0c3db
---
cmk/gui/plugins/userdb/ldap_connector.py | 3 +
tests/unit/cmk/gui/test_userdb_ldap_connector.py | 456 +++++++++++++----------
2 files changed, 260 insertions(+), 199 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=6b73e21e63…