1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/instances/tests
catborise ff1508b3c2 feat(instances): external snapshots use libvirt's snapshot API
Create, revert and delete are one libvirt call each. The pflash-to-rom
loader rewrite, the hand-written block commit and the s1./s2. names are
gone, so UEFI VMs can take external snapshots, a revert keeps disks added
later, and deleting an older snapshot keeps the newer one.

Create refuses what libvirt could not revert or delete later: internal
snapshots on the VM, a saved state, a running snapshot job, disks that
are not files, CD-ROM media, a branch after a revert, and memory without
a running VM or room in the first disk's pool. A disk-only revert keeps
the VM running, paused or shut off; one with memory resumes it as saved.
A revert in the same second as the previous one, which libvirt fails
after stopping the VM, is retried once.
A snapshot the old code took of a UEFI VM saved the loader as rom; its
revert is refused (deleting it still works).

The snapshots tab lists internal and external snapshots separately, can
save memory too, shows running snapshot jobs, and the revert confirmation
names the disks it detaches and that NVRAM is not restored.
2026-10-12 15:25:44 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
livetest.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_change_network.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_change_xml.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_clone_disks.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_clone_permission.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_console_listener.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_console_rule.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_console_settings_access.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_dialog_cpu.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_instance.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_rollback.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_create_wizard_url.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_destroy.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_detail_reads.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_detail_unreachable.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_disk_isolation.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_drbd_target.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_error_handling.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_gstfsd.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_index.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_index_host_alerts.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_list_rpc.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_list_unreachable.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_clone.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_create.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_dataloss.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_live_disk_resize.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_guest.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_iso.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_snapshots.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_live_xml.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_xml_effects.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migrate_form.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migration_bookkeeping.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migration_log.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_missing_fields.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_moved_while_waiting.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_new_disk_name.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_page_controls.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_pending_edits.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_quota.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_quota_lock.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_root_pass.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_security_mutations.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_snapshot_views.py feat(instances): external snapshots use libvirt's snapshot API 2026-10-12 15:25:44 +03:00
test_states.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_stats_sample.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_template_flag.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_template_quota.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_template_rules.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_update_console.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_views.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_xss.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00