Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update Pylint configuration fileArthur de Jong2023-06-171-46/+1
| | | | | Some options do not appear to be present in Pylint 2.16.2 but this used to work in version 1.9.4 (this config works with both versions).
* Don't force password change during testsArthur de Jong2022-08-271-1/+1
| | | | | | | | | | Change the configuration of the password policy in the test suite to not set pwdMustChange to TRUE. Between OpenLDAP 2.4 and 2.5 the behaviour of the LDAP server was changed to force a password change whenever the administrator changed a user's password. This change ensures that the old behaviour is maintained. See https://bugs.openldap.org/show_bug.cgi?id=7084
* Fix pylint config for newer versions of pylintArthur de Jong2022-08-271-1/+1
| | | | | Apparently newer versions of pylint parse the evaluation option differently.
* Fix internal assertion function detection on SolarisArthur de Jong2021-11-151-2/+8
|
* Do not use user arthur in testsArthur de Jong2021-11-143-48/+48
| | | | | This makes it more complicated to run the tests on an environment where a local user arthur exists.
* Support running tests with OpenLDAP 2.5Ryan Tandy2021-11-142-10/+10
| | | | | - Change database backend to LMDB - Load external ppolicy schema conditionally
* Support an empty search baseArthur de Jong2021-11-021-1/+4
| | | | | | | | | | | | This allows putting `base ""` in nslcd.conf to specify an empty search base. Note that the LDAP server needs to support this. With slapd this requires setting up an olcDefaultSearchBase attribute in the olcFrontendConfig object under cn=config or have the database have an empty suffix. Closes https://github.com/arthurdejong/nss-pam-ldapd/issues/50
* Support minus character in attribute expressionsArthur de Jong2021-10-171-4/+16
| | | | | This requires the attribute name is contained within a ${var-name} expression.
* Replace Travis with GitHub actionsArthur de Jong2021-05-262-5/+7
| | | | | This includes a few tweaks to the test scripts to make debugging easier and to avoid issues on Github action runners.
* Fix Python interpreter detection in testsArthur de Jong2019-10-061-1/+1
| | | | Fixes 644bc62
* Portability improvements to test suiteArthur de Jong2019-10-061-11/+13
| | | | | Some test systems have more local users and some systems prefer IPv4 addresses over IPv6 addresses.
* Various spelling fixesArthur de Jong2019-09-173-3/+3
|
* Fix Python interpreter detectionArthur de Jong2019-09-111-2/+2
| | | | | Apparently some environments provide certain Python executables which are not working Python interpreters.
* Improve Python code styleArthur de Jong2019-09-084-221/+452
| | | | | | This also adds a flake8 test that checks code style. Note that this test is not run by default because it requires network access to create the virtualenv with the test software.
* Add Python 3 supportArthur de Jong2019-09-086-17/+76
| | | | | | | | | This ensures that both pynslcd and the command-line utilities work with Python3 as interpreter and runs some tests with all installed Python interpreters. This drops support for Python 2.6 and extends 5a84be2 to perform more testing with Python 3.
* Add a Travis configuration fileArthur de Jong2018-07-212-5/+35
| | | | | | This ensures that the integration tests can be successfully run. It configures a slapd instance with the test database, configures the system to use LDAP authentication and runs the tests.
* Fix running pylint on distcheckArthur de Jong2018-02-171-4/+9
| | | | | This sets PYTHONPATH so that both the source and build directories are used to find constants.py.
* Support spaces in attribute mapping expressionsArthur de Jong2017-10-131-1/+4
|
* Ignore password hashes in consistent mannerArthur de Jong2017-06-252-7/+13
| | | | | | | This changes the getent and getent.ldap tests to ignore password hashes that may be present in shadow lookups in a consistent manner. This also adds minor compatibility improvements.
* Portability improvements to test_ldapcmds.shArthur de Jong2017-06-182-6/+10
| | | | | | | | | This fixes an issue with the export statement in POSIX shell scripts, ensures that the commands in the output match those in the script, strips password hashes for shadow lookups (for systems without PAM where these are exposed) and only runs the tests if we enabled the utils. Fixes 246a1f3.
* Clean log from test_pamcmds.expectArthur de Jong2017-06-161-1/+1
| | | | | | This removes test_pamcmds.log that is generated by test_pamcmds.expect when running the test suite. This avoids an error in the distcheck target.
* Fix running test_ldapcmds.sh during distcheckArthur de Jong2017-06-161-85/+86
| | | | | | | | | | This ensures that Python can find both getent.py (from source directory) and constants.py (from build directory) when running the tests from the distcheck target. This also makes the script more similar to test_nsscmds.sh. Fixes 9c803d7.
* Switch to HTTPS URLsArthur de Jong2017-06-131-1/+1
|
* Add tests for getent.ldap commandArthur de Jong2017-06-044-11/+527
| | | | | | | | This more or less duplicates the tests from test_nsscmds.sh to test_ldapcmds.sh with some modifications for the differences in output. This also extends the test_nsscmds.sh tests to handle the case where shadow lookups do not go through LDAP.
* Only run doctests when building pynslcdArthur de Jong2016-08-141-2/+2
|
* Ensure doctest also run in distcheckArthur de Jong2016-06-041-3/+5
| | | | | | This fixes test_doctest.sh to also work when the build directory is different from the source directory. This is needed because constants.py is only available in the build directory.
* Add test for running doctestsArthur de Jong2016-06-032-2/+44
|
* Support substituting expresions of type ${var:offset:length}Giovanni Mascellani2016-06-031-0/+16
|
* Add a few IPv6 testsArthur de Jong2016-01-202-2/+52
| | | | | | | This adds a few test hosts that have IPv6 addresses. This ensures that we have an IPv6-only host and hosts which have address values in different order in the ipHostNumber attribute (although attribute order is probably not guaranteed).
* Prevent numer overflow in test_clockArthur de Jong2015-03-221-3/+3
|
* Various small fixes when using --with-module-nameArthur de Jong2015-03-221-6/+14
| | | | | | | This updates the test framework to support --with-module-name, ensures that exports.map is rebuilt when configure is re-ran, fixes parsing of nsswitch.conf (to determine what to return for passwd lookups) and fixes the check for _nss_ldap_version.
* Use other IP range for testsArthur de Jong2014-06-122-14/+14
| | | | | | This uses IP addresses from the RFC 5737 TEST-NET-1 range that is meant for use in documentation. This avoids issues with running the tests environments that also use the 10.0.0.0/8 range.
* Add missing include for FreeBSDArthur de Jong2014-06-061-1/+1
|
* Introduce lookup_groupbyuser test commandArthur de Jong2014-06-052-1/+78
| | | | | | This command can be used to perform a lookup using getgrouplist() to present a list of returned numeric group ids. This can be used to avoid the additional lookups that are done with the id and groups commands.
* Add a test for setting member attribute mappingArthur de Jong2014-05-042-4/+63
|
* Run the correct executables for the testsArthur de Jong2014-03-103-7/+11
| | | | | This fixes issues with running the tests when using a separate build directory (fixes ef0eddaa).
* Fix nslcd-test.conf permissions for testArthur de Jong2014-03-101-0/+3
| | | | | | This ensures that configuration file is not world readable when the tests are run. This avoids test failure for the use of the rootpwmodpw option.
* Fix memory leaks related to set_pop()Arthur de Jong2014-01-051-4/+8
| | | | | | | | | | | | | Some pieces of code did not properly free() the value returned by set_pop(). The leak in group code was related to the introduction of nested group functionality in 41ba574 (merged in 3daa68d) so should only be present in releases 0.9.0 forward. The leak in the netgroup code only ended up in the Solaris version of the NSS module and was introduced in 4ea9ad1 (merged in 5c8779d). This leak is present in all releases from 0.8.0 forward.
* Fix compiler warnings in the myldap testArthur de Jong2014-01-041-6/+5
|
* Add a test for new configuration optionArthur de Jong2013-12-211-1/+4
|
* Portability fixes to environment testsArthur de Jong2013-10-293-12/+18
| | | | | | | | | | This mostly tries to reduce the influences of the test environment (local users and groups) on the tests. This uses another username (vsefcovic) in the PAM tests instead of the user arthur to avoid clashes with existing users. The PAM tests are skipped if passwd claims that it cannot modify LDAP passwords (for FreeBSD).
* Distribute setup_slapd.sh and associated filesArthur de Jong2013-10-251-2/+3
|
* Improve portability of ldap testArthur de Jong2013-10-222-20/+33
| | | | | | | | | This supports old ldapsearch commands that don't support the -x and -H options and ldapsearch commands that don't exit with a failure code if nothing is found. This also switches the test_myldap test to use the testenv check for the LDAP server.
* Handle other responses in test_pamcmdsArthur de Jong2013-10-221-5/+11
| | | | | | | This extends test_pamcmds to handle other pam/su/passwd errors and responses (as seen on CentOS 5). Also switch to stronger password when changing the test user's password to avoid problems with password strength checks.
* Make script to check test environmentArthur de Jong2013-10-226-74/+196
| | | | | This changes the in_testenv.sh script into testenv.sh which has more checks and a few functions to configure the test environment.
* Remove unnecessary attributes from test.ldifArthur de Jong2013-10-221-14490/+3
|
* Update tests READMEArthur de Jong2013-10-221-22/+9
| | | | | This refreshes the documentation of the tests, especially the test environment.
* Provide a script for setting up slapdArthur de Jong2013-10-222-0/+310
| | | | | | The setup_slapd.sh script can be used to set up and start a slapd instance in a single (temporary) directory. The slapd instance is configured and loaded with test data for use in the test environment.
* Fix sortgroup functionArthur de Jong2013-10-221-3/+3
| | | | | | | | | This fixes an issue with the sortgroup function which failed to handle a group line with only two colons correctly. Such group entries have been seen in the wild on FreeBSD. Also, comment lines in group files are now ignored (also seen on FreeBSD).
* Cleanups and fixes related to automake upgradeArthur de Jong2013-09-151-9/+4
| | | | | | This removes a few legacy workarounds and fixes for older versions of automake. This also removes adding specific DEBUG flags for tests since subdir objects are handled differently now.