URL: https://github.com/freeipa/freeipa/pull/5465
Author: mrizwan93
 Title: #5465: [Backport][ipa-4-9] ipatests: Test if server setup without dns 
uninstall properly
Action: opened

PR body:
"""
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 <myu...@redhat.com>
Reviewed-By: Kaleemullah Siddiqui <ksidd...@redhat.com>
Reviewed-By: Florence Blanc-Renaud <f...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5465/head:pr5465
git checkout pr5465
From 846c1525adf6936d330fc10582f0d2a8d156edd5 Mon Sep 17 00:00:00 2001
From: Mohammad Rizwan <myu...@redhat.com>
Date: Tue, 19 Jan 2021 14:13:34 +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 <myu...@redhat.com>
Reviewed-By: Kaleemullah Siddiqui <ksidd...@redhat.com>
Reviewed-By: Florence Blanc-Renaud <f...@redhat.com>
---
 ipatests/test_integration/test_uninstall.py | 27 +++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 ipatests/test_integration/test_uninstall.py

diff --git a/ipatests/test_integration/test_uninstall.py b/ipatests/test_integration/test_uninstall.py
new file mode 100644
index 00000000000..3d065646820
--- /dev/null
+++ b/ipatests/test_integration/test_uninstall.py
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2020  FreeIPA Contributors see COPYING for license
+#
+
+"""
+Module for ipa uninstall related scenarios.
+"""
+
+from ipatests.pytest_ipa.integration import tasks
+from ipatests.test_integration.base import IntegrationTest
+
+
+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 propelry.
+
+        related: https://pagure.io/freeipa/issue/8630
+        """
+        tasks.uninstall_master(self.master)
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org

Reply via email to