mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -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
|
return result
|
||||||
|
|
||||||
|
|
||||||
def install_client(master, client, extra_args=(),
|
def install_client(master, client, extra_args=(), user=None,
|
||||||
user=None, password=None):
|
password=None, unattended=True, stdin_text=None):
|
||||||
client.collect_log(paths.IPACLIENT_INSTALL_LOG)
|
client.collect_log(paths.IPACLIENT_INSTALL_LOG)
|
||||||
|
|
||||||
apply_common_fixes(client)
|
apply_common_fixes(client)
|
||||||
@ -516,14 +516,19 @@ def install_client(master, client, extra_args=(),
|
|||||||
if password is None:
|
if password is None:
|
||||||
password = client.config.admin_password
|
password = client.config.admin_password
|
||||||
|
|
||||||
result = client.run_command([
|
args = [
|
||||||
'ipa-client-install', '-U',
|
'ipa-client-install',
|
||||||
'--domain', client.domain.name,
|
'--domain', client.domain.name,
|
||||||
'--realm', client.domain.realm,
|
'--realm', client.domain.realm,
|
||||||
'-p', user,
|
'-p', user,
|
||||||
'-w', password,
|
'-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)
|
setup_sssd_debugging(client)
|
||||||
kinit_admin(client)
|
kinit_admin(client)
|
||||||
|
Loading…
Reference in New Issue
Block a user