freeipa/ipatests
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
..
azure Update Azure Pipelines to use Fedora 31 2020-02-12 18:08:32 +02:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions ipatests: update packages for rawhide and updates-testing nightlies 2020-02-10 15:22:54 +01:00
pytest_ipa pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
test_cmdline pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_install pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_integration pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipaclient Fix Pytest4.x warning about message 2019-06-19 19:20:14 +10:00
test_ipalib pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipaplatform Don't configure KEYRING ccache in containers 2019-01-18 11:33:11 +01:00
test_ipapython pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_ipaserver ipatests: Properly kill gpg-agent 2020-02-12 18:08:32 +02:00
test_ipatests_plugins pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
test_webui pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_xmlrpc pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py pytest: Warn about unittest/nose/xunit tests 2020-02-12 18:08:32 +02:00
create_external_ca.py Test external CA with DNS name constraints 2019-08-06 12:39:46 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
ipa-run-tests Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +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 Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
test_util.py Fix Pytest4.1+ warnings about pytest.config 2019-06-19 19:20:14 +10:00
util.py pytest: Migrate xunit-style setups to Pytest fixtures 2020-02-12 18:08:32 +02:00