From 9b217ef762c272a10e0bc7c1bb5d9b4926fc7cbe Mon Sep 17 00:00:00 2001 From: Felipe Barreto Date: Apr 26 2018 06:17:00 +0000 Subject: 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 --- diff --git a/ipatests/test_integration/test_backup_and_restore.py b/ipatests/test_integration/test_backup_and_restore.py index 266c36e..089847b 100644 --- a/ipatests/test_integration/test_backup_and_restore.py +++ b/ipatests/test_integration/test_backup_and_restore.py @@ -164,6 +164,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) @@ -187,6 +189,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)