freeipa/tests/test_xmlrpc
Petr Viktorin 8a7d7aaf81 Defer conversion and validation until after --{add,del,set}attr are handled
--addattr & friends that modified attributes known to Python sometimes
used converted and validated Python values instead of LDAP strings.
This caused a problem for --delattr, which searched for a converted
integer in a list of raw strings (ticket 2407).
With this patch we work on raw strings, converting only when done.

Deferring validation ensures the end result is valid, so proper errors
are raised instead of failing later (ticket 2405).

Tests included.

Replaces previous fix for:
https://fedorahosted.org/freeipa/ticket/2418

Fixes:
https://fedorahosted.org/freeipa/ticket/2405
https://fedorahosted.org/freeipa/ticket/2407
https://fedorahosted.org/freeipa/ticket/2408
2012-04-03 17:43:27 -04:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
objectclasses.py Add support for SSH public keys to user and host objects. 2012-02-13 22:21:27 -05:00
test_attr.py Defer conversion and validation until after --{add,del,set}attr are handled 2012-04-03 17:43:27 -04:00
test_automember_plugin.py Use valid argument names in tests 2012-03-25 18:05:33 -04:00
test_automount_plugin.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_batch_plugin.py Test the batch plugin 2012-04-03 16:19:59 -04:00
test_cert.py Fix uses of O=REALM instead of the configured certificate subject base. 2012-03-26 20:29:26 -04:00
test_delegation_plugin.py Use valid argument names in tests 2012-03-25 18:05:33 -04:00
test_dns_plugin.py Move test skipping to class setup 2012-04-01 16:21:10 -04:00
test_group_plugin.py Remove ipausers' gidnumber from tests 2012-03-14 23:59:54 -04:00
test_hbac_plugin.py Fix little test errors 2012-04-03 16:19:43 -04:00
test_hbacsvcgroup_plugin.py ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00
test_hbactest_plugin.py Use valid argument names in tests 2012-03-25 18:05:33 -04:00
test_host_plugin.py Fix uses of O=REALM instead of the configured certificate subject base. 2012-03-26 20:29:26 -04:00
test_hostgroup_plugin.py Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
test_krbtpolicy.py Change the way has_keytab is determined, also check for password. 2011-08-24 14:12:01 +02:00
test_nesting.py Suppress managed netgroups as indirect members of hosts. 2011-09-19 08:41:25 +02:00
test_netgroup_plugin.py Netgroup nisdomain and hosts validation 2012-03-28 16:23:37 +02:00
test_passwd_plugin.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_permission_plugin.py Fix unit tests to work with new comma-support, validation requirements 2012-03-26 09:29:27 +02:00
test_privilege_plugin.py Only split CSV in the client, quote instead of escaping 2012-03-20 20:03:54 -04:00
test_pwpolicy.py Use valid argument names in tests 2012-03-25 18:05:33 -04:00
test_replace.py Change the way has_keytab is determined, also check for password. 2011-08-24 14:12:01 +02:00
test_role_plugin.py Use valid argument names in tests 2012-03-25 18:05:33 -04:00
test_selfservice_plugin.py Only split CSV in the client, quote instead of escaping 2012-03-20 20:03:54 -04:00
test_selinuxusermap_plugin.py Fix deletion of HBAC Rules when there are SELinux user maps defined 2012-01-24 21:09:09 -05:00
test_service_plugin.py Fix uses of O=REALM instead of the configured certificate subject base. 2012-03-26 20:29:26 -04:00
test_sudocmd_plugin.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
test_sudocmdgroup_plugin.py Allow removing sudo commands with special characters from command groups 2012-03-12 16:02:29 +01:00
test_sudorule_plugin.py Netgroup nisdomain and hosts validation 2012-03-28 16:23:37 +02:00
test_user_plugin.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
xmlrpc_test.py Move test skipping to class setup 2012-04-01 16:21:10 -04:00