mirielka's pull request #66: "[master, ipa-4-4] Tests: Add cleanup to integration trust tests" was opened
PR body: """ Trust tests fail if they are executed after external trust tests. This is caused my missing cleanup. Providing cleanup that would enable correct execution of the tests regardless of their order. https://fedorahosted.org/freeipa/ticket/6306 """ See the full pull-request at https://github.com/freeipa/freeipa/pull/66 ... or pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/66/head:pr66 git checkout pr66
From d047063907c803a42a88800da4c44c5c85ee70e8 Mon Sep 17 00:00:00 2001 From: Lenka Doudova <ldoud...@redhat.com> Date: Wed, 7 Sep 2016 13:09:39 +0200 Subject: [PATCH] Tests: Add cleanup to integration trust tests Trust tests fail if they are executed after external trust tests. This is caused my missing cleanup. Providing cleanup that would enable correct execution of the tests regardless of their order. https://fedorahosted.org/freeipa/ticket/6306 --- ipatests/test_integration/tasks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index c60d436..677e5cf 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -687,6 +687,11 @@ def uninstall_master(host, ignore_topology_disconnect=True, paths.PKI_TOMCAT, paths.REPLICA_INFO_GPG_TEMPLATE % host.hostname], raiseonerr=False) + host.run_command("find /var/lib/sss/keytabs -name '*.keytab' | " + "xargs rm -fv", raiseonerr=False) + host.run_command("find /run/ipa -name 'krb5*' | xargs rm -fv", + raiseonerr=False) + host.run_command(['systemctl', 'restart', 'sssd']) unapply_fixes(host)
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code