From 415578a199a221a3ed78cbf4d629c3e4ff6f39ec Mon Sep 17 00:00:00 2001 From: Felipe Barreto Date: Mon, 23 Apr 2018 08:28:30 -0300 Subject: [PATCH] Fixing TestBackupAndRestore::test_full_backup_and_restore_with_removed_users The test as it was, was testing the backup and restore based on previous backups and restore, not with an actual installation. Now, with a clear setup for each test, the test mentioned above will not fail to do a lookup (using the host command, in check_dns method) for the master domain. Reviewed-By: Christian Heimes --- ipatests/test_integration/test_backup_and_restore.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipatests/test_integration/test_backup_and_restore.py b/ipatests/test_integration/test_backup_and_restore.py index ef1a64968..c1199f211 100644 --- a/ipatests/test_integration/test_backup_and_restore.py +++ b/ipatests/test_integration/test_backup_and_restore.py @@ -177,6 +177,8 @@ class TestBackupAndRestore(IntegrationTest): def test_full_backup_and_restore_with_removed_users(self): """regression test for https://fedorahosted.org/freeipa/ticket/3866""" + tasks.uninstall_master(self.master) + tasks.install_master(self.master) with restore_checker(self.master): backup_path = backup(self.master) @@ -200,6 +202,8 @@ class TestBackupAndRestore(IntegrationTest): def test_full_backup_and_restore_with_selinux_booleans_off(self): """regression test for https://fedorahosted.org/freeipa/ticket/4157""" + tasks.uninstall_master(self.master) + tasks.install_master(self.master) with restore_checker(self.master): backup_path = backup(self.master)