[python-ldap] testing syncrepl refresh with restarted slapd
Michael Ströder
michael at stroeder.com
Mon Nov 20 12:45:38 EST 2017
Michael Ströder wrote:
> I've committed a slightly modified variant of your test module.
>
> Background:
> No need to patch slapdtest.py since it's meant to take an arbitrary
> template string (via sub-classing).
>
> You can even do more custom with sub-classing. E.g. in tests of Æ-DIR's
> Python module I generate the config based on the Jinja2 templates in the
> Æ-DIR ansible roles.
BTW: Regarding your TODO section about testing refresh phase against a
restarted slapd you can look into method
Test01_ReconnectLDAPObject.test102_reconnect_simple_bind()
in script Tests/t_ldapobject.py where slapd is restarted to test the
proper reconnect.
Ciao, Michael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3829 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20171120/2fb33954/attachment.bin>
More information about the python-ldap
mailing list