Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix permissions of test configurationArthur de Jong2013-09-021-0/+4
| | | | | | This sets the permissions on the nslcd-test.conf file while running the tests to ensure that the permission checks for the bindpwn and rootpwmodpw options do not fail the test.
* Add a test for tio timeout calculationsArthur de Jong2013-09-022-2/+54
| | | | | This test checks whether the proposed remaining time to sleep is reasonable.
* Add a test for clock_gettime() supported clocksArthur de Jong2013-09-022-2/+162
| | | | | | This probes the system for available clocks to see if they can be reliably used to get a monotonic-like timer (the test doesn't verify the monotonic part, just usability).
* Small protability fixArthur de Jong2013-09-021-1/+1
|
* Improve robustness of test_manpagesArthur de Jong2013-09-011-1/+4
|
* Only run pynslcd tests if it is enabledArthur de Jong2013-08-251-1/+4
|
* Add a test for the manual pagesArthur de Jong2013-08-232-4/+53
| | | | | This replaces e0491d2 to run xmlto from the man directory. This handles the case more gracefully if xmlto is not available.
* Update files from test environmentArthur de Jong2013-08-182-46/+62
|
* Run pylint as a testArthur de Jong2013-08-183-3/+295
| | | | | This runs a somewhat limited pylint run against the source files. It should at least catch some issues.
* Implement tests for caching functionalityArthur de Jong2013-08-172-3/+464
|
* Have test_pycompile not write any pyc filesArthur de Jong2013-07-281-2/+35
| | | | | | | | We need to avoid writing pyc files because during make distcheck, the source directory is read-only. This also ensures that the test is skipped if the Python interpreter is not found.
* Test Python syntax on make checkArthur de Jong2013-07-262-2/+36
|
* Rename nscd_invalidate option to reconnect_invalidateArthur de Jong2013-07-261-1/+1
| | | | | This also renames the internal nscd module to invalidator for both nslcd and pynslcd. The new invalidator module is now no longer nscd-specific.
* Add an explicit cast to int in lookup_shadowArthur de Jong2013-05-201-1/+1
|
* Make the NSS tests dependant on the configuration of ↵Arthur de Jong2013-03-281-1/+45
| | | | nsswitch.conf
* Do not rely on printf() being able to print NULL stringsArthur de Jong2013-03-281-9/+16
|
* Add tests for nested group functionalityArthur de Jong2013-03-242-9/+287
| | | | | This also includes some changes to the test directory contents that were for other tests and functionality.
* Unpack the LDIF file to make diffs clearerArthur de Jong2013-03-242-0/+55867
|
* implement a lookup_shadow test command for use on ↵Arthur de Jong2013-03-112-1/+101
| | | | systems that don't allow querying shadow via getent
* small portability fix in test_pamcmds.shArthur de Jong2013-03-101-2/+4
|
* implement functionality to send a cache invalidation ↵Arthur de Jong2013-03-091-2/+2
| | | | signal to nscd
* add tests for trimming expressionsArthur de Jong2013-03-031-1/+14
|
* allow names with one character in default validnames ↵Arthur de Jong2013-02-231-1/+3
| | | | option and allow parentheses (taken from Fedora packages)
* support children search scope for systems that have itArthur de Jong2013-01-141-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1917 ef36b2f9-881f-0410-afb5-c4e39611909c