tests/backup: check non-ASCII passphrase

QubesOS/qubes-issues#2398
This commit is contained in:
Marek Marczykowski-Górecki 2016-10-26 21:39:44 +02:00
parent af182c4fd1
commit 64ac7f6e8d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -384,6 +384,14 @@ class TC_00_Backup(BackupTestsMixin, qubes.tests.QubesTestCase):
vms = [vm for vm in vms if vm.name not in exclude] vms = [vm for vm in vms if vm.name not in exclude]
self.assertCorrectlyRestored(vms, orig_hashes) self.assertCorrectlyRestored(vms, orig_hashes)
def test_020_encrypted_backup_non_ascii(self):
vms = self.create_backup_vms()
orig_hashes = self.vm_checksum(vms)
self.make_backup(vms, encrypted=True, passphrase=u'zażółć gęślą jaźń')
self.remove_vms(reversed(vms))
self.restore_backup(passphrase=u'zażółć gęślą jaźń')
self.assertCorrectlyRestored(vms, orig_hashes)
def test_100_backup_dom0_no_restore(self): def test_100_backup_dom0_no_restore(self):
# do not write it into dom0 home itself... # do not write it into dom0 home itself...
os.mkdir('/var/tmp/test-backup') os.mkdir('/var/tmp/test-backup')