freeipa/ipatests
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
..
man Build: remove incorrect use of MAINTAINERCLEANFILES 2016-11-16 09:12:07 +01:00
pytest_plugins logging: make sure logging level is set to proper value 2017-07-26 15:57:56 +02:00
test_cmdline pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
test_install pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
test_integration test_caless: remove xfail in wildcard certificate tests 2017-07-26 16:02:18 +02:00
test_ipaclient csrgen: Change to pure openssl config format (no script) 2017-04-03 07:46:30 +00:00
test_ipalib x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
test_ipapython py3: Remove comparison >=2 of debnug log level 2017-06-28 16:26:50 +02:00
test_ipaserver Create a Certificate parameter 2017-07-27 10:28:58 +02:00
test_pkcs10 Use with statement for opening file 2017-03-30 13:08:08 +02:00
test_webui pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
test_xmlrpc x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py ipatests: do not finalize api when IPA is not configured 2017-07-14 09:12:36 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Improve the robustness FreeIPA's i18n module and its tests 2016-11-28 13:58:33 +01:00
ipa-run-tests Enable additional warnings (BytesWarning, DeprecationWarning) 2017-02-10 16:16:44 +01:00
ipa-test-config Move env_config module to ipatests.pytest_plugins.integration.env_config 2017-03-22 13:42:04 +01:00
ipa-test-task logging: do not use ipa_log_manager to create module-level loggers 2017-07-14 15:55:59 +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 Correct PyPI package dependencies 2017-04-26 12:31:11 +02:00
test_util.py Silence pytest.yield_fixture deprecation warning 2017-05-30 12:28:51 +02:00
util.py Fix ipatests.util doc tests 2017-03-30 13:20:13 +02:00