tests: update for admin.vm.volume.Clear usage in qvm-template-postprocess

This commit is contained in:
Marek Marczykowski-Górecki 2020-07-16 04:07:07 +02:00
parent 4da218c332
commit af1c1e5234
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -168,8 +168,8 @@ class TC_00_qvm_template_postprocess(qubesadmin.tests.QubesTestCase):
self.app.expected_calls[
('test-vm', 'admin.vm.volume.List', None, None)] = \
b'0\0root\nprivate\nvolatile\nkernel\n'
self.app.expected_calls[('test-vm', 'admin.vm.volume.Import', 'private',
b'')] = b'0\0'
self.app.expected_calls[('test-vm', 'admin.vm.volume.Clear', 'private',
None)] = b'0\0'
vm = self.app.domains['test-vm']
qubesadmin.tools.qvm_template_postprocess.reset_private_img(vm)