freeipa/ipatests
Martin Basti e8f2a415b3 Fix PKCS11 helper
Slots in HSM are not assigned statically, we have to chose proper
slot from token label.

Softhsm i2.2.0 changed this behavior and now slots can change over
time (it is allowed by pkcs11 standard).

Changelog:
* created method get_slot() that returns slot number from
  used label
* replaces usage of slot in __init__ method of P11_Helper
  with label
* slot is dynamically detected from token label before
  session is opened
* pkcs11-util --init-token now uses '--free' instead '--slot'
  which uses first free slot (we don't care about slot numbers
  anymore)

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

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
2017-04-12 09:54:10 +02:00
..
man Build: remove incorrect use of MAINTAINERCLEANFILES 2016-11-16 09:12:07 +01:00
pytest_plugins collect audit.log for easier selinux investigation 2017-04-06 10:08:54 +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 pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
test_ipaclient csrgen: Change to pure openssl config format (no script) 2017-04-03 07:46:30 +00:00
test_ipalib Add options to run only ipaclient unittests 2017-03-17 15:02:13 +01:00
test_ipapython Skip test_session_storage in ipaclient unittest mode 2017-03-31 13:48:47 +02:00
test_ipaserver Fix PKCS11 helper 2017-04-12 09:54:10 +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 tests: add non-reg for idrange-add 2017-04-07 12:45:32 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Add options to run only ipaclient unittests 2017-03-17 15:02:13 +01: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 Move hosts module to ipatests.pytest_plugins.integration.hosts 2017-03-22 13:42:04 +01: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 setup, pylint, spec file: drop python-nss dependency 2017-03-31 12:20:35 +02:00
test_util.py Catch ValueError raised by pytest.config.getoption() 2017-01-05 17:35:33 +01:00
util.py Fix ipatests.util doc tests 2017-03-30 13:20:13 +02:00