mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
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:
parent
8ebbb271a5
commit
44bcf0990f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user