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 <frenaud@redhat.com>
This commit is contained in:
Sergey Orlov
2020-03-10 14:30:51 +01:00
committed by Alexander Bokovoy
parent 3f3fa403a9
commit 814b47e85c

View File

@@ -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