From 64ac7f6e8de7f2982573db2c1a10446b7e038149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 26 Oct 2016 21:39:44 +0200 Subject: [PATCH] tests/backup: check non-ASCII passphrase QubesOS/qubes-issues#2398 --- qubes/tests/int/backup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qubes/tests/int/backup.py b/qubes/tests/int/backup.py index 2220068e..83acb86b 100644 --- a/qubes/tests/int/backup.py +++ b/qubes/tests/int/backup.py @@ -384,6 +384,14 @@ class TC_00_Backup(BackupTestsMixin, qubes.tests.QubesTestCase): vms = [vm for vm in vms if vm.name not in exclude] 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): # do not write it into dom0 home itself... os.mkdir('/var/tmp/test-backup')