freeipa/ipatests/test_ipaserver
Stanislav Levin 19462788f1 ipatests: Properly kill gpg-agent
There is a race condition exposed in 'test_gpg_asymmetric'.
The teardown of 'tempdir' fixture and gpg-agent being called
from the teardown of 'gpgkey' fixture could simultaneously
remove the gnugpg's socket files.

This results in an error like:
```

================= ERRORS ===================
_ ERROR at teardown of test_gpg_asymmetric __
...

>  os.unlink(entry.name, dir_fd=topfd)
E  FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.extra'

/usr/lib64/python3.7/shutil.py:450: FileNotFoundError

```

The problem is that the agent is not terminated properly.
Instead, gpgconf could be used to kill daemonized gpg-agent.

Related: https://pagure.io/freeipa/issue/7989
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2020-02-12 18:08:32 +02:00
..
data ipa-otptoken-import: Make PBKDF2 refer to the pkcs5 namespace 2017-09-01 10:50:34 +02:00
test_install ipatests: Properly kill gpg-agent 2020-02-12 18:08:32 +02:00
__init__.py pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
httptest.py Py3: Replace six.moves imports 2018-10-05 12:06:19 +02:00
test_adtrust_mockup.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_changepw.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_dnssec.py ipapython: move dnssec, p11helper and secrets to ipaserver 2016-11-29 14:50:51 +01:00
test_i18n_messages.py Add tests for "i18n_messages" end point 2018-07-17 15:32:28 -04:00
test_ipap11helper.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_kadmin.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ldap.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_migratepw.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_otptoken_import.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_rpcserver.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_secrets.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_serverroles.py Unify and simplify LDAP service discovery 2018-11-21 08:57:08 +01:00
test_topology_plugin.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_version_comparison.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00