freeipa/tests
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
..
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 Implement password based session login 2012-02-27 05:57:43 -05:00
test_pkcs10 Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_xmlrpc Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05: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