Fix for regression from PR#3962

There was a regression caused in nightly run of test
TestBackupReinstallRestoreWithDNS of test_backup_and_restore
test suite because of PR#3962.

Signed-off-by: Kaleemullah Siddiqui <ksiddiqu@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Kaleemullah Siddiqui
2020-02-18 13:40:43 +05:30
committed by Florence Blanc-Renaud
parent e4966f9c3f
commit 939ee59c27

View File

@@ -316,8 +316,6 @@ class BaseBackupAndRestoreWithDNS(IntegrationTest):
'-U'])
tasks.uninstall_packages(self.master, ['*ipa-server-dns'])
if reinstall:
tasks.install_master(self.master, setup_dns=True)
dirman_password = self.master.config.dirman_password
result = self.master.run_command(
@@ -327,6 +325,8 @@ class BaseBackupAndRestoreWithDNS(IntegrationTest):
assert 'Please install the package' in result.stderr_text
tasks.install_packages(self.master, ['*ipa-server-dns'])
if reinstall:
tasks.install_master(self.master, setup_dns=True)
self.master.run_command(['ipa-restore', backup_path],
stdin_text=dirman_password + '\nyes')
tasks.resolve_record(self.master.ip, self.example_test_zone)