freeipa/ipatests
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
..
man Replace ntpd with chronyd in installation 2018-04-09 11:00:02 -04:00
prci_definitions Fix f52e0e31f7 typo in tests label definition. 2018-12-07 17:44:05 +01:00
pytest_ipa ipatests: fix test_full_backup_and_restore 2018-12-10 17:04:56 +01:00
test_cmdline Address inconsistent-return-statements 2018-11-13 13:37:58 +01:00
test_install ipa-client-install: Update how comments are added by ipachangeconf 2018-07-05 19:42:43 +02:00
test_integration ipatests: fix test_full_backup_and_restore 2018-12-10 17:04:56 +01:00
test_ipaclient Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ipalib Check pager's executable before subprocess.Popen 2018-12-07 14:06:29 +01:00
test_ipaplatform Silence comparison-with-itself in tests 2018-11-13 13:37:58 +01:00
test_ipapython Silence comparison-with-itself in tests 2018-11-13 13:37:58 +01:00
test_ipaserver Unify and simplify LDAP service discovery 2018-11-21 08:57:08 +01:00
test_webui Fix "ID views" tests fail after running "Automember" tests 2018-11-27 14:20:34 +01:00
test_xmlrpc Handle service_del with bad service name 2018-12-11 12:14:32 +01:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Fix pytest deprecation warning 2018-11-15 15:02:13 +01:00
create_external_ca.py Py3: Replace six.text_type with str 2018-09-27 16:11:18 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
ipa-run-tests Fix compatibility with latest pytest 2018-03-23 13:08:39 +01:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_util.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
util.py Fix Module 'pytest' has no 'config' member 2018-11-13 13:37:58 +01:00