core-admin/qubes/tests
Marek Marczykowski-Górecki 691a6f4d8c
vm/dispvm: add auto_cleanup property, unify creating new DispVM
Add auto_cleanup property, which remove DispVM after its shutdown
- this is to unify DispVM handling - less places needing special
handling after DispVM shutdown.

New DispVM inherit all settings from respective AppVM. Move this from
classmethod `DispVM.from_appvm()`, to DispVM constructor. This unify
creating new DispVM with any other VM class.
Notable exception are attached devices - because only one running VM can
have a device attached, this would prevent second DispVM started from
the same AppVM. If one need DispVM with some device attached, one can
create DispVM with auto_cleanup=False. Such DispVM will still not have
persistent storage (as any other DispVM).

Tests included.

QubesOS/qubes-issues#2974
2017-08-06 20:54:09 +02:00
..
integ Merge branch 'tests-storage' 2017-07-29 05:01:42 +02:00
tools tests: adjust TC_00_QubesDaemonProtocol for reorganized api module 2017-06-21 06:59:58 +02:00
vm vm/dispvm: add auto_cleanup property, unify creating new DispVM 2017-08-06 20:54:09 +02:00
__init__.py vm/dispvm: add auto_cleanup property, unify creating new DispVM 2017-08-06 20:54:09 +02:00
api_admin.py Merge branch 'stats' 2017-07-29 05:05:32 +02:00
api_misc.py Follow change of qubesdb path return type 2017-07-25 05:20:38 +02:00
api.py api: use str(subject) instead of explicit subject.name 2017-07-27 22:15:02 +02:00
app.py Merge branch 'services' 2017-07-29 05:09:32 +02:00
devices_block.py Follow change of qubesdb path return type 2017-07-25 05:20:38 +02:00
devices.py devices: make attach/detach related events async 2017-07-04 13:04:23 +02:00
events.py events: add support for async event handlers 2017-07-04 13:04:22 +02:00
ext.py qubes.NotifyTools: ignore '/qubes-tools/version' completely 2017-06-14 10:44:24 +02:00
extra.py When running tests clean up and remove qubesd.socket 2017-07-14 14:54:04 +02:00
firewall.py firewall: raise ValueError on invalid hostname in dsthost= 2017-07-26 03:26:58 +02:00
init.py tests: more tests fixes 2017-07-26 03:26:58 +02:00
run.py qubes/api: refactor creating multiple qubesd sockets 2017-06-21 00:17:37 +02:00
storage_file.py tests: various fixes for storage tests 2017-07-26 03:26:13 +02:00
storage_kernels.py tests: very basic tests for LinuxKernel pool 2017-05-17 11:17:22 +02:00
storage_lvm.py tests: various fixes for storage tests 2017-07-26 03:26:13 +02:00
storage.py tests: various fixes for storage tests 2017-07-26 03:26:13 +02:00
tarwriter.py tarwriter: use new PAX format, instead of old GNU for sparse files 2017-07-21 03:14:06 +02:00