mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
test_backup_and_restore.py AssertionError fix
prefix in the backup function expects output to have 'ipa.ipaserver.install.ipa_backup.Backup:' and it's wrong. The right one is 'ipaserver.install.ipa_backup:'. https://pagure.io/freeipa/issue/7339 Reviewed-By: Felipe Volpone <fbarreto@redhat.com>
This commit is contained in:
parent
830866d68a
commit
a70dcb1e18
@ -126,8 +126,7 @@ def backup(host):
|
||||
|
||||
# Get the backup location from the command's output
|
||||
for line in result.stderr_text.splitlines():
|
||||
prefix = ('ipa.ipaserver.install.ipa_backup.Backup: '
|
||||
'INFO: Backed up to ')
|
||||
prefix = 'ipaserver.install.ipa_backup: INFO: Backed up to '
|
||||
if line.startswith(prefix):
|
||||
backup_path = line[len(prefix):].strip()
|
||||
logger.info('Backup path for %s is %s', host, backup_path)
|
||||
@ -136,7 +135,6 @@ def backup(host):
|
||||
raise AssertionError('Backup directory not found in output')
|
||||
|
||||
|
||||
|
||||
class TestBackupAndRestore(IntegrationTest):
|
||||
topology = 'star'
|
||||
|
||||
@ -409,6 +407,7 @@ class TestBackupAndRestoreWithKRA(BaseBackupAndRestoreWithKRA):
|
||||
"""backup, uninstall, restore"""
|
||||
self._full_backup_restore_with_vault(reinstall=False)
|
||||
|
||||
|
||||
class TestBackupReinstallRestoreWithKRA(BaseBackupAndRestoreWithKRA):
|
||||
def test_full_backup_reinstall_restore_with_vault(self):
|
||||
"""backup, uninstall, reinstall, restore"""
|
||||
|
Loading…
Reference in New Issue
Block a user