core-admin-client/qubesadmin/tests
Marek Marczykowski-Górecki 45a28c29ae
Fix VM validity check for cached VM objects
Qubes().domains.refresh_cache() tries to preserve cached VM objects if
the class matches - this way if an application keeps reference to any,
it will still be the same as freshly obtained from the collection, and
also it will receive cache updates/invalidates based on events.

The check for class change was invalid - on core-admin-client side we
have just one QubesVM class with 'klass' attribute. This leads to VM
objects being disconnected from VMCollection and stale properties cache
there (because they no longer receive events).

Fix the check.

And also add a test if indeed the same object is returned.
2020-07-14 16:10:49 +02:00
..
backup tests: check rejecting/accepting compression filters 2019-09-10 15:24:15 +02:00
tools Merge remote-tracking branch 'origin/pr/139' 2020-05-27 04:18:20 +02:00
vm Try to use new property.GetAll method to pre-fill the cache 2020-05-22 19:01:24 +02:00
__init__.py Import data using ImportWithSize call, not manual resizing 2020-01-23 10:29:50 +01:00
app.py Fix VM validity check for cached VM objects 2020-07-14 16:10:49 +02:00
devices.py tests/devices: add test for handling listing device classes 2019-08-06 15:15:12 +02:00
errors.py Improve QubesDaemonNoResponseError error message 2017-08-12 15:15:52 +02:00
events.py Adjust for changed qubesd socket protocol 2020-05-22 19:01:24 +02:00
features.py features: serialize True as '1' 2017-07-28 13:56:05 +02:00
firewall.py tests/firewall: update future time to be really in the future 2020-03-08 17:16:34 +01:00
label.py base: make WrapperObjectsCollection behave like a dict 2018-01-12 05:29:40 +01:00
storage.py Fixed metadata usage being served as strings 2019-11-19 00:39:17 +01:00
tags.py tags support 2017-06-20 01:34:16 +02:00
utils.py Support for AudioVM 2020-03-28 17:33:02 +01:00