From 814b47e85c87bc3c80c91ebd0aa9085ac06b521e Mon Sep 17 00:00:00 2001 From: Sergey Orlov Date: Tue, 10 Mar 2020 14:30:51 +0100 Subject: [PATCH] ipatests: provide AD admin password when trying to establish trust `ipa trust-add --password` command requires that user provides a password. Related to: https://pagure.io/freeipa/issue/7895 Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_trust.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_trust.py b/ipatests/test_integration/test_trust.py index a38da28b6..a81fbe3c3 100644 --- a/ipatests/test_integration/test_trust.py +++ b/ipatests/test_integration/test_trust.py @@ -656,7 +656,8 @@ class TestTrust(BaseTestTrust): # This checks that our setup is correct result = self.master.run_command( ['ipa', 'trust-add', self.ad.domain.name, - '--admin', 'Administrator', '--password'], raiseonerr=False) + '--admin', 'Administrator', '--password'], raiseonerr=False, + stdin_text=self.master.config.ad_admin_password) assert result.returncode == 1 assert 'CIFS server communication error: code "3221225653", ' \ 'message "{Device Timeout}' in result.stderr_text