Skip to content

Commit

Permalink
ipatests: provide AD admin password when trying to establish trust
Browse files Browse the repository at this point in the history
`ipa trust-add --password` command requires that user provides a password.

Related to: https://pagure.io/freeipa/issue/7895

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
  • Loading branch information
sorlov-rh committed Mar 24, 2020
1 parent 312d00d commit aae30eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipatests/test_integration/test_trust.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@ def test_server_option_with_unreachable_ad(self):
# 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
Expand Down

0 comments on commit aae30eb

Please sign in to comment.