ipatests: do not configure nameserver when installing client and replica

When IPA master is installed without DNS, using it as nameserver creates
invalid configuration.

Related to https://pagure.io/freeipa/issue/8703

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Sergey Orlov
2021-02-17 12:23:33 +01:00
parent 4ad5ce7b58
commit 881eea4efe
7 changed files with 78 additions and 41 deletions

View File

@@ -37,7 +37,8 @@ class TestUninstallBase(IntegrationTest):
client = self.replicas[0]
client_inv_hostname = '{}.nonexistent'.format(client.hostname)
tasks.install_client(self.master, client,
extra_args=['--hostname', client_inv_hostname])
extra_args=['--hostname', client_inv_hostname],
nameservers=None)
client.run_command(['ipa-client-install', '--uninstall', '-U'])
client_uninstall_log = client.get_file_contents(
@@ -57,7 +58,7 @@ class TestUninstallBase(IntegrationTest):
# Include /etc/httpd/conf.d/ipa-rewrite.conf
# from ssl.conf on the replica
tasks.install_replica(self.master, self.replicas[0],
extra_args=['--force-join'])
extra_args=['--force-join'], nameservers=None)
tasks.uninstall_replica(self.master, self.replicas[0])
errline = b'Include /etc/httpd/conf.d/ipa-rewrite.conf'
ssl_conf = self.replicas[0].get_file_contents(paths.HTTPD_SSL_CONF)