freeipa/ipatests/test_ipaserver
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
..
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 pylint: enable the import-error check 2016-10-24 14:11:08 +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 Add a basic test suite for kadmin.local interface 2016-12-16 10:37:49 +01:00
test_ldap.py Use with statement for opening file 2017-03-30 13:08:08 +02:00
test_otptoken_import.py Migrate OTP import script to python-cryptography 2017-03-01 12:51:50 +01: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 scripts, tests: explicitly set confdir in the rest of server code 2017-02-22 08:07:48 +00: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