ipatests: Update test tasks for client to be interactive

Related: https://pagure.io/freeipa/issue/7908
Reviewed-By: Michal Polovka <mpolovka@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Tibor Dudlák 2019-07-23 15:02:33 +02:00
parent 8ebbb271a5
commit 44bcf0990f
No known key found for this signature in database
GPG Key ID: 12B8BD343576CDF5

View File

@ -498,8 +498,8 @@ def install_replica(master, replica, setup_ca=True, setup_dns=False,
return result
def install_client(master, client, extra_args=(),
user=None, password=None):
def install_client(master, client, extra_args=(), user=None,
password=None, unattended=True, stdin_text=None):
client.collect_log(paths.IPACLIENT_INSTALL_LOG)
apply_common_fixes(client)
@ -516,14 +516,19 @@ def install_client(master, client, extra_args=(),
if password is None:
password = client.config.admin_password
result = client.run_command([
'ipa-client-install', '-U',
args = [
'ipa-client-install',
'--domain', client.domain.name,
'--realm', client.domain.realm,
'-p', user,
'-w', password,
'--server', master.hostname] + list(extra_args)
)
'--server', master.hostname
]
if unattended:
args.append('-U')
result = client.run_command(args + list(extra_args), stdin_text=stdin_text)
setup_sssd_debugging(client)
kinit_admin(client)