Use tasks.install_master() in external_ca tests

The install_master() function performs additional steps besides just
installing a server. It also sets up log collection and performs
additional tests.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Christian Heimes
2018-10-26 20:10:23 +02:00
parent ec54fa7712
commit 204353e4dc
2 changed files with 8 additions and 17 deletions
+3 -15
View File
@@ -70,24 +70,12 @@ def match_in_journal(host, string, since='today', services=('certmonger',)):
def install_server_external_ca_step1(host):
"""funtion for step 1 to install the ipa server with external ca"""
args = ['ipa-server-install', '-U',
'-a', host.config.admin_password,
'-p', host.config.dirman_password,
'--setup-dns', '--no-forwarders',
'-n', host.domain.name,
'-r', host.domain.realm,
'--domain-level=%i' % host.config.domain_level,
'--external-ca']
cmd = host.run_command(args)
return cmd
"""Step 1 to install the ipa server with external ca"""
return tasks.install_master(host, external_ca=True)
def install_server_external_ca_step2(host, ipa_ca_cert, root_ca_cert):
"""funtion for step 2 to install the ipa server with external ca"""
"""Step 2 to install the ipa server with external ca"""
args = ['ipa-server-install',
'-a', host.config.admin_password,
'-p', host.config.dirman_password,