nginx-ldap-auth/t
Vladimir Homutov d9a2149825 Added tests with multiple LDAP servers.
The directory is distributed on two servers, and search now may return
continuation object for specific users.
2018-10-29 11:46:59 +03:00
..
README Added test suite. 2018-10-23 18:37:24 +03:00
ldap-auth.t Added tests with multiple LDAP servers. 2018-10-29 11:46:59 +03:00

README

Test suite is available at http://hg.nginx.org/nginx-tests.
Check the http://hg.nginx.org/nginx-tests/file/tip/README file
for instructions on how to use it.

Additionally, the test requires a working installation
of OpenLDAP server and utilities (http://www.openldap.org/),
and python's coverage tool (https://coverage.readthedocs.io)

copy ldap-auth.t into testsuite, setup environment variables:

$ export TEST_LDAP_DAEMON=/usr/lib64/openldap/slapd
$ export TEST_LDAP_AUTH_DAEMON=/path/to/nginx-ldap-auth-daemon.py
$ prove 'ldap-auth.t'

to get coverage report:

$ export TEST_NGINX_LEAVE=1
$ prove 'ldap-auth.t'
$ cd /tmp/nginx-test-xxxx
$ coverage2 html

report is now generated in htmlcov/