From 3a584803da697b80d49590223be632a7451e1b7e Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Date: Fri, 29 Jan 2021 13:01:46 +0530 Subject: [PATCH] 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 Reviewed-By: Florence Blanc-Renaud --- .../test_integration/test_uninstallation.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ipatests/test_integration/test_uninstallation.py b/ipatests/test_integration/test_uninstallation.py index a5cee1428..d075d7fc8 100644 --- a/ipatests/test_integration/test_uninstallation.py +++ b/ipatests/test_integration/test_uninstallation.py @@ -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)