From 936a6a38b8e7ece83933090db5840ebd37c26c20 Mon Sep 17 00:00:00 2001 From: Lenka Doudova Date: Tue, 13 Sep 2016 08:17:53 +0200 Subject: [PATCH] Tests: Add krb5kdc.service restart to integration trust tests krb5kdc.service restart is necessary for proper running of integration trust related tests. https://fedorahosted.org/freeipa/ticket/6322 Reviewed-By: Martin Basti --- ipatests/test_integration/tasks.py | 2 ++ ipatests/test_integration/test_trust.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index 99761ca41..ac36e2e02 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -490,6 +490,8 @@ def establish_trust_with_ad(master, ad_domain, extra_args=()): stdin_text=master.config.ad_admin_password) master.run_command(['smbcontrol', 'all', 'debug', '1']) clear_sssd_cache(master) + master.run_command(['systemctl', 'restart', 'krb5kdc.service']) + time.sleep(60) def remove_trust_with_ad(master, ad_domain): diff --git a/ipatests/test_integration/test_trust.py b/ipatests/test_integration/test_trust.py index 69418dc8f..6b30338cd 100644 --- a/ipatests/test_integration/test_trust.py +++ b/ipatests/test_integration/test_trust.py @@ -24,7 +24,6 @@ from ipatests.test_integration.base import IntegrationTest from ipatests.test_integration import tasks from ipatests.test_integration import util from ipaplatform.paths import paths -import time class ADTrustBase(IntegrationTest): @@ -400,8 +399,6 @@ class TestTrustWithUPN(ADTrustBase): def test_upn_user_authentication(self): """ Check that AD user with UPN can authenticate in IPA """ - self.master.run_command(['systemctl', 'restart', 'krb5kdc']) - time.sleep(60) self.master.run_command(['kinit', '-C', '-E', self.upn_principal], stdin_text=self.upn_password)