freeipa/tests/test_xmlrpc
Rob Crittenden 0099ccbea8 Only apply validation rules when adding and updating.
There may be cases, for whatever reason, that an otherwise illegal
entry gets created that doesn't match the criteria for a valid
user/host/group name. If this happens (i.e. migration) there is no way
to remove this using the IPA tools because we always applied the name
pattern. So you can't, for example, delete a user with an illegal name.

Primary keys are cloned with query=True in PKQuery which causes no
rules to be applied on mod/show/find. This reverts a change from commit
3a5e26a0 which applies class rules when query=True (for enforcing no
white space).

Replace rdnattr with rdn_is_primary_key. This was meant to tell us when
an RDN change was necessary to do a rename. There could be a disconnect
where the rdnattr wasn't the primary key and in that case we don't
need to do an RDN change, so use a boolean instead so that it is
clear that RDN == primary key.

Add a test to ensure that nowhitespace is actually enforced.

https://fedorahosted.org/freeipa/ticket/2115

Related: https://fedorahosted.org/freeipa/ticket/2089

Whitespace tickets:
https://fedorahosted.org/freeipa/ticket/1285
https://fedorahosted.org/freeipa/ticket/1286
https://fedorahosted.org/freeipa/ticket/1287
2012-02-29 18:00:45 -05: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 Add --delattr option to complement --setattr/--addattr 2011-11-29 10:08:28 +01:00
test_automember_plugin.py Suppress managed netgroups from showing as memberof hostgroups. 2011-08-31 14:34:52 +02:00
test_automount_plugin.py Fix automountkey-mod 2011-08-18 20:35:12 -04:00
test_cert.py ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00
test_delegation_plugin.py Memberof attribute control and update 2012-02-08 10:43:25 +01:00
test_dns_plugin.py Improve hostname and domain name validation 2012-02-29 18:52:58 +01:00
test_group_plugin.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
test_hbac_plugin.py Fix HBAC tests hostnames 2011-09-30 12:25:09 +02: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 HBAC test optional sourcehost option 2012-01-09 08:49:10 +02:00
test_host_plugin.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05: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 Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
test_passwd_plugin.py Display the entries that failed when deleting with --continue. 2011-01-10 10:32:10 -05:00
test_permission_plugin.py Validate attributes in permission-add 2012-02-28 18:22:24 -05:00
test_privilege_plugin.py ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00
test_pwpolicy.py Disallow deletion of global password policy. 2011-10-12 10:12:49 +02: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 Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
test_selfservice_plugin.py Fix raw format for ACI commands 2012-02-03 17:04:51 +01: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 Don't allow IPA master hosts or important services be deleted. 2012-02-23 20:17:12 +01:00
test_sudocmd_plugin.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
test_sudocmdgroup_plugin.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
test_sudorule_plugin.py Consolidate external member code into two functions in baseldap.py 2012-02-08 09:12:53 +01:00
test_user_plugin.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
xmlrpc_test.py Global DNS options 2012-02-24 09:40:40 +01:00