From 3938698e07404acfd7ae84fcaae9c02850d1afa7 Mon Sep 17 00:00:00 2001 From: Lenka Doudova Date: Fri, 14 Oct 2016 08:04:43 +0200 Subject: 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 --- ipatests/test_integration/test_legacy_clients.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipatests/test_integration') 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) -- cgit