freeipa/ipatests/test_ipaserver
Stanislav Laznicka 5a44ca6383 Create a Certificate parameter
Up until now, Bytes parameter was used for certificate parameters
throughout the framework. However, the Bytes parameter does nothing
special for certificates, like validation, so this had to be done
for each of the parameters which were supposed to represent a
certificate.

This commit introduces a special Certificate parameter which takes
care of certificate validation so this does not have to be done
separately. It also makes sure that the certificates represented by
this parameter are always converted to DER format so that we can work
with them in a unified manner throughout the framework.

This commit also makes it possible to pass bytes directly during
instantiation of the Certificate parameter and they are still
represented correctly after their conversion in the _convert_scalar()
method.

https://pagure.io/freeipa/issue/4985

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
2017-07-27 10:28:58 +02:00
..
data Implement OTP token importing 2014-06-25 12:55:02 +02:00
test_install Add options to run only ipaclient unittests 2017-03-17 15:02:13 +01:00
__init__.py pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
httptest.py tests: fix failing HTTPS connection 2017-07-27 10:28:58 +02:00
test_changepw.py Remove unused imports 2015-12-23 07:59:22 +01:00
test_dnssec.py ipapython: move dnssec, p11helper and secrets to ipaserver 2016-11-29 14:50:51 +01:00
test_ipap11helper.py Fix PKCS11 helper 2017-04-12 09:54:10 +02:00
test_kadmin.py Silence pytest.yield_fixture deprecation warning 2017-05-30 12:28:51 +02:00
test_ldap.py Create a Certificate parameter 2017-07-27 10:28:58 +02:00
test_otptoken_import.py py3: test_otptoken_import: fix bytes usage 2017-06-28 16:26:50 +02:00
test_rpcserver.py Fix test, nested lists are no longer converted to nested tuples 2017-02-15 17:27:56 +01:00
test_secrets.py ipapython: move dnssec, p11helper and secrets to ipaserver 2016-11-29 14:50:51 +01:00
test_serverroles.py test_serverroles: Get rid of MockLDAP and use ldap2 instead 2017-05-26 16:11:40 +02:00
test_topology_plugin.py test_topology_plugin: Don't rely on order of an attribute's values 2016-05-30 16:44:08 +02:00
test_version_comparison.py tests for package version comparison 2016-01-12 15:33:22 +01:00