summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration
diff options
context:
space:
mode:
authorLenka Doudova <ldoudova@redhat.com>2016-10-14 08:04:43 +0200
committerMartin Babinsky <mbabinsk@redhat.com>2016-11-14 14:32:10 +0100
commit3938698e07404acfd7ae84fcaae9c02850d1afa7 (patch)
tree6f5d4909424711e54594150eb1e3d50fc3047023 /ipatests/test_integration
parent8a177732afc404a830b75cab03fb420af93fa441 (diff)
downloadfreeipa-3938698e07404acfd7ae84fcaae9c02850d1afa7.tar.gz
freeipa-3938698e07404acfd7ae84fcaae9c02850d1afa7.tar.xz
freeipa-3938698e07404acfd7ae84fcaae9c02850d1afa7.zip
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>
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r--ipatests/test_integration/test_legacy_clients.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipatests/test_integration/test_legacy_clients.py b/ipatests/test_integration/test_legacy_clients.py
index 8380e50dd..33958a24b 100644
--- a/ipatests/test_integration/test_legacy_clients.py
+++ b/ipatests/test_integration/test_legacy_clients.py
@@ -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)