mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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 <mbasti@redhat.com>
This commit is contained in:
parent
09a8f62d12
commit
936a6a38b8
@ -490,6 +490,8 @@ def establish_trust_with_ad(master, ad_domain, extra_args=()):
|
|||||||
stdin_text=master.config.ad_admin_password)
|
stdin_text=master.config.ad_admin_password)
|
||||||
master.run_command(['smbcontrol', 'all', 'debug', '1'])
|
master.run_command(['smbcontrol', 'all', 'debug', '1'])
|
||||||
clear_sssd_cache(master)
|
clear_sssd_cache(master)
|
||||||
|
master.run_command(['systemctl', 'restart', 'krb5kdc.service'])
|
||||||
|
time.sleep(60)
|
||||||
|
|
||||||
|
|
||||||
def remove_trust_with_ad(master, ad_domain):
|
def remove_trust_with_ad(master, ad_domain):
|
||||||
|
@ -24,7 +24,6 @@ from ipatests.test_integration.base import IntegrationTest
|
|||||||
from ipatests.test_integration import tasks
|
from ipatests.test_integration import tasks
|
||||||
from ipatests.test_integration import util
|
from ipatests.test_integration import util
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
class ADTrustBase(IntegrationTest):
|
class ADTrustBase(IntegrationTest):
|
||||||
@ -400,8 +399,6 @@ class TestTrustWithUPN(ADTrustBase):
|
|||||||
|
|
||||||
def test_upn_user_authentication(self):
|
def test_upn_user_authentication(self):
|
||||||
""" Check that AD user with UPN can authenticate in IPA """
|
""" 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],
|
self.master.run_command(['kinit', '-C', '-E', self.upn_principal],
|
||||||
stdin_text=self.upn_password)
|
stdin_text=self.upn_password)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user