Adding right parameters to install IPA in TestInstallMasterReservedIPasForwarder

When installing ipa in interactive mode, it's necessary to provide the
hostname. This will make the test pass.

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Felipe Barreto
2018-03-26 19:43:13 -03:00
committed by Christian Heimes
parent d705320ec1
commit e7c4f77d0d

View File

@@ -346,13 +346,15 @@ class TestInstallMasterReservedIPasForwarder(IntegrationTest):
server_install_options = ( server_install_options = (
"yes\n" "yes\n"
"{hostname}\n"
"{dmname}\n\n" "{dmname}\n\n"
"{dm_pass}\n{dm_pass}" "{dm_pass}\n{dm_pass}"
"\n{admin_pass}\n{admin_pass}\n" "\n{admin_pass}\n{admin_pass}\n"
"yes\nyes\n0.0.0.0\n".format( "yes\nyes\n0.0.0.0\n".format(
dm_pass=self.master.config.dirman_password, dm_pass=self.master.config.dirman_password,
admin_pass=self.master.config.admin_password, admin_pass=self.master.config.admin_password,
dmname=self.master.domain.name)) dmname=self.master.domain.name,
hostname=self.master.hostname))
cmd = self.master.run_command(['ipa-server-install'], cmd = self.master.run_command(['ipa-server-install'],
stdin_text=server_install_options, stdin_text=server_install_options,