1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/vrtManager/tests
catborise d9f9ebab58 refactor(computes): the Computes page reads capacity through vrtManager
The capacity read lived in its own module with raw libvirt calls and a
thread pool with a deadline, beside helpers that already read the same
things. It now uses them:

- wvmHostDetails.get_capacity() sums the vCPUs and memory of all and of
  the running VMs from get_host_instances(), against the host's info.
- get_storages_info() also gives each pool's free space.
- Compute.capacity joins the two, like cpu_count and ram_size, and is
  None when the host is down or the read fails.

The page reads the hosts one after another, as it already connected to
each of them; a host that cannot be reached is given up after the
connect timeout. computes/capacity.py and its thread handling are gone.
The page looks and sorts as before.
2026-10-25 12:27:05 +03:00
..
__init__.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_clone_nvram.py feat(instances): VM clone runs as a job 2026-10-15 09:28:43 +03:00
test_connection.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_connection_threads.py feat(operations): the job worker 2026-10-14 23:27:57 +03:00
test_console_setters.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_device_edits.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_dhcp_leases.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_external_snapshots.py feat(instances): external snapshot delete runs as a job 2026-10-14 23:27:57 +03:00
test_host_reads.py refactor(computes): the Computes page reads capacity through vrtManager 2026-10-25 12:27:05 +03:00
test_instance_getters.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_interface_addresses.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_iso_media.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_clone.py feat(instances): a running VM can be cloned 2026-10-16 16:52:38 +03:00
test_live_connection.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_live_nvram.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migration.py test: the live suite passes on v3.1.0 again 2026-10-24 09:31:07 +03:00
test_network_ip.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_persistent_edits.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_read_cache.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_remove_nvram.py feat(instances): a shut-off UEFI VM can be migrated 2026-10-16 21:05:23 +03:00
test_resize_disk.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_rwlock.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_usage.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_util.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_volume_in_use.py fix(storages): keep volumes a VM still needs 2026-10-13 09:13:02 +03:00
test_xml_safety.py feat(instances): VM clone runs as a job 2026-10-15 09:28:43 +03:00
test_xpath_values.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00