From 5165afd50124b057f8ff5bef565bf65f19235656 Mon Sep 17 00:00:00 2001 From: Ganna Kaihorodova Date: Fri, 20 Apr 2018 11:14:56 +0200 Subject: [PATCH] Fix trust tests for Posix Support Test ecxpects auto-detection of trust type, Windows Server 2016 doesn't have support for MFU/NIS (SFU - Services for Unix), so auto detection doesn't work Fix is to pass extra arguments to the trust-add command, such as --range-type="ipa-ad-trust-posix" to enforce a particular range type https://pagure.io/freeipa/issue/7508 Reviewed-By: Alexander Bokovoy --- ipatests/test_integration/test_trust.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ipatests/test_integration/test_trust.py b/ipatests/test_integration/test_trust.py index c7f0e43a6..650857d29 100644 --- a/ipatests/test_integration/test_trust.py +++ b/ipatests/test_integration/test_trust.py @@ -208,8 +208,10 @@ class TestPosixADTrust(ADTrustBase): """Integration test for Active Directory with POSIX support""" def test_establish_trust(self): - # Not specifying the --range-type directly, it should be detected - tasks.establish_trust_with_ad(self.master, self.ad_domain) + tasks.establish_trust_with_ad( + self.master, self.ad_domain, + extra_args=['--range-type', 'ipa-ad-trust-posix'] + ) def test_range_properties_in_posix_trust(self): # Check the properties of the created range