freeipa/ipatests/test_xmlrpc
Christian Heimes c09927d16a Handle service_del with bad service name
The command 'ipa service-del badservice' used to fail with an internal
server error, because check_required_principal() could not handle a
principal that is not a service principal. All del commands have less
strict error checking of primary keys so they can reference any stored
key, even illegal ones.

check_required_principal() skips required principal check if the
principal is not a service principal. A non-service principal can never
be a required principal.

Fixes: https://pagure.io/freeipa/issue/7793
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2018-12-11 12:14:32 +01:00
..
data certprofile: add tests for config profileId scenarios 2018-04-19 08:57:53 -04:00
tracker pylint 2.2: Fix unnecessary pass statement 2018-11-26 16:54:43 +01:00
__init__.py Add marker needs_ipaapi and option to skip tests 2017-12-11 20:40:06 +01:00
mock_trust.py ipatests: Move trust mock helper functions to a separate module 2016-07-29 09:04:42 +02:00
objectclasses.py tests: tracker: Add CertmapconfigTracker to tests certmapconfig-* commands 2017-08-18 11:40:21 +02:00
test_add_remove_cert_cmd.py tests: Stageuser-{add,remove}-cert 2017-02-07 13:58:48 +01:00
test_attr.py frontend: re-raise remote RequirementError using CLI name in CLI 2016-05-25 16:06:26 +02:00
test_automember_plugin.py Find orphan automember rules 2018-10-10 09:56:40 +02:00
test_automount_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_baseldap_plugin.py Address inconsistent-return-statements 2018-11-13 13:37:58 +01:00
test_batch_plugin.py test_batch_plugin: fix py2/3 failing assertion 2017-11-30 15:51:24 +01:00
test_ca_plugin.py Fix certificate type error when exporting to file 2018-09-06 14:36:15 +02:00
test_caacl_plugin.py Test for caacl-add-service 2016-08-30 10:35:58 +02:00
test_caacl_profile_enforcement.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_cert_plugin.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_certmap_plugin.py Fix various dict related pylint warnings 2018-11-13 13:37:58 +01:00
test_certprofile_plugin.py certprofile: add tests for config profileId scenarios 2018-04-19 08:57:53 -04:00
test_config_plugin.py Add sysadm_r to default SELinux user map order 2018-11-09 17:16:19 -05:00
test_delegation_plugin.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
test_dns_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_dns_realmdomains_integration.py Address inconsistent-return-statements 2018-11-13 13:37:58 +01:00
test_external_members.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_group_plugin.py Prevent the creation on users and groups with numeric characters only 2018-06-27 15:25:39 -03:00
test_hbac_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_hbacsvcgroup_plugin.py Performance: Find commands: do not process members by default 2016-05-31 14:08:54 +02:00
test_hbactest_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_host_plugin.py ipatests: add xmlrpc test for user|host-find --certificate 2018-11-27 17:20:35 -05:00
test_hostgroup_plugin.py Performance: Find commands: do not process members by default 2016-05-31 14:08:54 +02:00
test_idviews_plugin.py Idviews: fix objectclass violation on idview-add 2018-01-09 07:58:52 +01:00
test_kerberos_principal_aliases.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
test_krbtpolicy.py Applied tier0 and tier1 marks on unit tests and xmlrpc tests 2015-11-09 11:49:17 +01:00
test_location_plugin.py Tests: Fix for failing location tests 2016-06-23 15:29:06 +02:00
test_nesting.py Refactor test_nesting, create HostGroupTracker 2016-03-24 14:36:55 +01:00
test_netgroup_plugin.py group: allow services as members of groups 2018-05-08 16:39:22 -04:00
test_old_permission_plugin.py Copy-paste error in permssions plugin, CID 323649 2018-11-08 13:16:26 +01:00
test_otptoken_plugin.py 389-ds OTP lasttoken plugin: Add unit test 2018-02-15 14:10:48 +01:00
test_passwd_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_permission_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_ping_plugin.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
test_privilege_plugin.py Removed objectclass from LDAP*ReverseMember based tests 2016-08-10 13:53:55 +02:00
test_pwpolicy_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_radiusproxy_plugin.py Test coverage for multiservers for radius proxy 2018-06-13 16:23:18 -04:00
test_range_plugin.py tests: add non-reg for idrange-add 2017-04-07 12:45:32 +02:00
test_realmdomains_plugin.py Prevent installation with single label domains 2017-11-09 11:32:31 +01:00
test_replace.py Refactor test_replace 2016-01-26 19:03:15 +01:00
test_role_plugin.py The LDAP*ReverseMember shouldn't imply --all is always specified 2016-06-29 10:44:30 +02:00
test_schema_plugin.py Fixing param-{find,show} and output-{find,show} commands 2017-10-17 13:42:11 +02:00
test_selfservice_plugin.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
test_selinuxusermap_plugin.py group: allow services as members of groups 2018-05-08 16:39:22 -04:00
test_service_plugin.py Handle service_del with bad service name 2018-12-11 12:14:32 +01:00
test_servicedelegation_plugin.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
test_stageuser_plugin.py Stage User: Test to create stage user with minimal values 2017-01-19 17:36:46 +01:00
test_sudocmd_plugin.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
test_sudocmdgroup_plugin.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
test_sudorule_plugin.py Convert members into types in sudorule-*-option 2018-08-15 12:52:52 +02:00
test_trust_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_user_plugin.py ipatests: add xmlrpc test for user|host-find --certificate 2018-11-27 17:20:35 -05:00
test_vault_plugin.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_whoami_plugin.py Add test: test_xmlrpc/test_whoami_plugin.py 2017-07-12 15:54:55 +02:00
testcert.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
xmlrpc_test.py Py3: Replace six.string_types with str 2018-09-27 16:11:18 +02:00