Commit 73c15907 authored by Łukasz Nowak's avatar Łukasz Nowak

software/kvm: Assure that old-style backup is removed

parent 09b4bb5b
......@@ -982,6 +982,22 @@ class TestInstanceResilientBackupExporter(
self.initialBackup()
@skipUnlessKvm
class TestInstanceResilientBackupExporterMigrateOld(
TestInstanceResilientBackupExporterMixin, KVMTestCase):
def test(self):
backup_partition = self.getPartitionPath(
'kvm-export', 'srv', 'backup', 'kvm')
backup_file_list = ['virtual.qcow2', 'virtual.qcow2.gz']
for backup_file in backup_file_list:
with open(os.path.join(backup_partition, backup_file), 'w') as fh:
fh.write('')
self.initialBackup()
post_backup_file_list = os.listdir(backup_partition)
for backup_file in backup_file_list:
self.assertNotIn(backup_file, post_backup_file_list)
@skipUnlessKvm
class TestInstanceResilientBackupExporterPartialRecovery(
TestInstanceResilientBackupExporterMixin, KVMTestCase):
......@@ -1039,6 +1055,12 @@ class TestInstanceResilientBackupExporterIde(
disk_type = 'ide'
@skipUnlessKvm
class TestInstanceResilientBackupExporterMigrateOldIde(
TestInstanceResilientBackupExporterMigrateOld):
disk_type = 'ide'
@skipUnlessKvm
class TestInstanceResilientBackupExporterPartialRecoveryIde(
TestInstanceResilientBackupExporterPartialRecovery):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment