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 <cheimes@redhat.com>
This commit is contained in:
Felipe Barreto
2018-04-23 08:28:30 -03:00
parent 9d838210bb
commit 415578a199

View File

@@ -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)