freeipa/tests
Petr Viktorin e9d68a7b00 Don't crash when searching with empty relationship options
Empty sequences (and sequences of empty strings) are normalized
to None, but the member filter code expected a list.
This patch extends a test for missing options to also catch
false values.
The functional change is from `if param_name in options:` to
`if options.get(param_name):`; the rest of the patch is code
de-duplication and tests.

These are CSV params with csv_skipspace set, so on the CLI, empty
set is given as a string with just spaces and commas (including
the empty string).

https://fedorahosted.org/freeipa/ticket/2479
2012-03-13 23:28:53 -04:00
..
test_cmdline ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00
test_install Fix test failure in updater when adding values to a single-value attr 2011-07-11 19:21:51 -04:00
test_ipalib Replace float with Decimal 2012-01-20 08:13:44 +01:00
test_ipapython Do stricter checking of IP addressed passed to server install. 2011-05-30 13:38:46 +02:00
test_ipaserver subclass HTTP_Status from plugable.Plugin, fix not_found tests 2012-02-29 21:04:10 -05:00
test_pkcs10 Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_xmlrpc Don't crash when searching with empty relationship options 2012-03-13 23:28:53 -04:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
data.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_util.py Sort lists so order is predictable and tests pass as expected. 2011-08-31 11:18:08 +02:00
util.py Sort lists so order is predictable and tests pass as expected. 2011-08-31 11:18:08 +02:00