mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Tests: Provide AD cleanup for legacy client tests
Providing cleanup of trust information from AD machines for legacy client tests. https://fedorahosted.org/freeipa/ticket/6396 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
committed by
Martin Babinsky
parent
8a177732af
commit
3938698e07
@@ -368,6 +368,10 @@ class BaseTestLegacyClient(object):
|
||||
cls.master.run_command(['ipa', 'user-del', 'disabledipauser'],
|
||||
raiseonerr=False)
|
||||
|
||||
# Remove information about trust from AD, if domain was defined
|
||||
if hasattr(cls, 'ad_domain'):
|
||||
tasks.remove_trust_info_from_ad(cls.master, cls.ad_domain)
|
||||
|
||||
# Also unapply fixes on the legacy client, if defined
|
||||
if hasattr(cls, 'legacy_client'):
|
||||
tasks.unapply_fixes(cls.legacy_client)
|
||||
|
||||
Reference in New Issue
Block a user