ipatests: Test if server setup without dns uninstall properly

IPA server uninstall was failing if dns was not setup.
This test check if it uninstalls propelry.

related: https://pagure.io/freeipa/issue/8630

Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Mohammad Rizwan 2021-01-29 13:01:46 +05:30 committed by Rob Crittenden
parent 776d575c06
commit 3a584803da

View File

@ -119,3 +119,20 @@ class TestUninstallBase(IntegrationTest):
self.master.run_command([
paths.DSCTL, serverid, 'remove', '--do-it'
])
class TestUninstallWithoutDNS(IntegrationTest):
@classmethod
def install(cls, mh):
tasks.install_master(cls.master, setup_dns=False)
def test_uninstall_server_without_dns(self):
"""Test if server setup without dns uninstall properly
IPA server uninstall was failing if dns was not setup.
This test check if it uninstalls properly.
related: https://pagure.io/freeipa/issue/8630
"""
tasks.uninstall_master(self.master)