freeipa/ipatests
Alexander Bokovoy 35ab6567af ipatests: fix race condition in finalizer of encrypted backup test
When using a fixture, we get a temporary directory created and then
removed by pytest. Pytest uses `shutil.rmtree` call which collects all
files in the directory being removed and then removes them one by one.
At the point of removal of our GNUPGHOME directory, gpg daemon is being
shut down and there might still be an agent UNIX domain socket. The
removal actually overlaps in time with shut down of the gpg daemon, thus
causing `shutil.rmtree()` to fail when an agent UNIX domain socket is
removed by the daemon.

Change the way how we run the gpg agent to use a temporary systemd
service. Stop the service in the finalizer method so that systemd would
send SIGTERM signal and the gpg agent would clean itself up.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
2020-12-23 15:37:10 +02:00
..
azure Azure CI: mask chronyd in the container 2020-11-17 18:48:24 +02:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions ipatests: remove test_acme from gating 2020-12-23 13:59:29 +01:00
pytest_ipa ipatests: add test for PKI subsystem detection 2020-12-09 09:54:58 +01:00
test_cmdline Make tab completion in console more useful 2020-07-07 12:36:10 +02:00
test_install Unify access to FQDN 2020-10-26 17:11:19 +11:00
test_integration ipatests: fix expected error message in test_commands 2020-12-23 14:01:43 +01:00
test_ipaclient Fix Pytest4.x warning about message 2019-06-19 19:20:14 +10:00
test_ipalib ipatests: test that trailing/leading whitespaces in passwords are allowed 2020-12-18 16:47:59 +02:00
test_ipaplatform Add missing fedora_container platform members 2020-09-29 12:06:24 +02:00
test_ipapython Add helper for poll/sleep loops with timeout 2020-09-30 09:52:08 +02:00
test_ipaserver ipatests: fix race condition in finalizer of encrypted backup test 2020-12-23 15:37:10 +02:00
test_ipatests_plugins ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
test_webui tests_webui: fix wrong user name key for trail space case 2020-12-21 22:32:39 +02:00
test_xmlrpc xmlrpctests: remove harcoded expiration date from test_user_plugin 2020-12-10 09:45:44 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04: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 ipatests: Specify shell implementation 2020-04-21 13:24:50 +02: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 E712 comparison to True / False 2020-05-05 10:42:46 +02:00
util.py ipatests: Remove no longer needed 'skip' compatibility 2020-04-21 13:24:50 +02:00