freeipa/ipatests
Florence Blanc-Renaud 8b7e17aa16 ipatests: update tests for ipa-server-certinstall
The test test_http_intermediate_ca was expecting success when
it should expect a failure. Scenario:
- install IPA ca-less with certs signed by rootCA
- call ipa-server-certinstall with a cert signed by a subCA
to replace http cert.
In this case, the command should refust changing the cert
(otherwise the clients won't be able any more to use
ipa * commands as the subca is not installed in /etc/ipa/nssdb
or in /etc/ipa/ca.crt).

The commit fixes the test expectation and marks the test as
xfail (see ticket 7759).

The test test_ds_intermediate_ca was expecting success when
it should expect a failure. Same scenario as above, but for
the ldap server cert.

The commit fixes the test expectation and removes the xfail
(ticket 6959 was closed as invalid).

Note:
The behavior differs for ldap and http cert because LDAP server
is using a NSSDB and http server is using openssl, hence
ipa-server-certinstall follows 2 different code paths when
changing the server cert.

Related to https://pagure.io/freeipa/issue/7759
Related to https://pagure.io/freeipa/issue/6959

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2018-11-13 13:04:19 +01:00
..
man Replace ntpd with chronyd in installation 2018-04-09 11:00:02 -04:00
prci_definitions ipatests: add missing tests for test_caless 2018-11-13 12:42:38 +01:00
pytest_ipa Use tasks.install_master() in external_ca tests 2018-10-26 20:10:23 +02:00
test_cmdline Fix test_cli_fsencoding on Python 3.7, take 2 2018-11-08 16:03:21 +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: update tests for ipa-server-certinstall 2018-11-13 13:04:19 +01:00
test_ipaclient Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ipalib Py3: Replace six.moves imports 2018-10-05 12:06:19 +02:00
test_ipaplatform Refactor os-release and platform information 2018-08-30 11:37:21 +02:00
test_ipapython Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ipaserver ipaserver.install.adtrust: fix CID 323644 2018-11-07 16:37:18 +01:00
test_webui WebUI tests: Make possible to use kwargs with @screenshot decorator 2018-10-31 11:55:35 +01:00
test_xmlrpc tests: add xmlrpc test for ipa user-add --radius-username 2018-11-13 12:40:44 +01:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02: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 Py3: Replace six.text_type with str 2018-09-27 16:11:18 +02:00