freeipa/tests/test_xmlrpc
Ondrej Hamada 5cfee2338d Netgroup nisdomain and hosts validation
nisdomain validation:
Added pattern to the 'nisdomain' parameter to validate the specified
nisdomain name. According to most common use cases the same pattern as
for netgroup should fit. Unit-tests added.

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

'add_external_pre_callback' function was created to allow validation of
all external members. Validation is based on usage of objects primary
key parameter. The 'add_external_pre_callback' fucntion has to be called
directly from in the 'pre_callback' function. This change affects
netgroup, hbacrule and sudorule commands.

For hostname, the validator allows non-fqdn and underscore characters.
validate_hostname function in ipalib.util was modified and contains
additional option that allows hostname to contain underscore characters.
This option is disabled by default.

Unit-tests added.

https://fedorahosted.org/freeipa/ticket/2447
2012-03-28 16:23:37 +02: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 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_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 Harden raw record processing in DNS plugin 2012-03-22 19:30:13 +01:00
test_group_plugin.py Remove ipausers' gidnumber from tests 2012-03-14 23:59:54 -04:00
test_hbac_plugin.py Netgroup nisdomain and hosts validation 2012-03-28 16:23:37 +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 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 Fix uses of O=REALM instead of the configured certificate subject base. 2012-03-26 20:29:26 -04:00