1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/instances/tests
catborise 36635eb450 fix(instances): the API tells a VM's fault reason; doc/permissions.md as the code is
An authorization sweep of everything added since 2026-11-09 (tags, Balance,
maintenance, Bulk Migrate, volume download, protection, disk I/O limits,
crash action, bulk power/snapshot/tag, backup targets, schedules, verify and
restores, unlock and OTP reset) as a stranger, staff, a view_instances
auditor, a flagless owner and an owner with every flag found no gap.

- the VM details of the API carry state_reason when a fault put the VM in
  its state, as the VM page tells it: libvirt's state and reason codes of
  one read and the reason in the request's language; null otherwise. A
  script watching the API can tell a VM a full storage paused from one
  paused by hand, in any language
- the bulk actions name a refused VM to whoever sees it (a view_instances
  auditor too), and a bulk snapshot no longer tells one who does not see a
  VM that it is a template (_visible_vms, one filter for the three)
- doc/permissions.md: creating a VM and the VM report, host devices, video,
  RNG, TPM, the crash and hang action, disk I/O limits, disk moves and
  protection are a superuser's, so are verifying a backup, restoring one
  disk, backing up a template and the backup API; deleting a VM takes its
  disk files when chosen; notes on bulk actions, the Jobs page, the address
  search, API tokens and LDAP passwords
2026-11-23 08:15:25 +03:00
..
js feat(ui): what a job, a tag or a backup names links to its page 2026-11-21 23:22:09 +03:00
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
create_page.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_access_tab.py feat(instances): a VM's access in one strip, its console password kept to its rule 2026-10-30 20:39:40 +03:00
test_addresses.py fix(instances): one guest's bad address no longer ends a search or the VM report 2026-11-13 16:07:12 +03:00
test_api_list_refresh.py fix(instances): the REST API's list of all VMs reads the hosts first 2026-11-13 16:07:01 +03:00
test_api_parity.py fix(instances): the API tells a VM's fault reason; doc/permissions.md as the code is 2026-11-23 08:15:25 +03:00
test_audit_rows.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
test_bad_options.py fix(instances): a power on or delete option the form never sends is refused in words 2026-11-12 16:40:58 +03:00
test_bulk_power.py fix(instances): the API tells a VM's fault reason; doc/permissions.md as the code is 2026-11-23 08:15:25 +03:00
test_bulk_snapshot.py fix(instances): the API tells a VM's fault reason; doc/permissions.md as the code is 2026-11-23 08:15:25 +03:00
test_bulk_tag.py feat(instances): snapshot the VMs chosen on the VM list 2026-11-20 14:24:46 +03:00
test_change_network.py fix(nwfilters): two changes at once do not undo each other 2026-11-13 11:46:01 +03:00
test_change_xml.py fix(instances): the XML editor and a VM defined from XML check its host devices 2026-11-11 22:58:34 +03:00
test_claim_after_permission.py fix(instances): a request refused by the permission check takes no claim 2026-11-05 18:08:03 +03:00
test_clone_disks.py feat(instances): VM clone runs as a job 2026-10-15 09:28:43 +03:00
test_clone_job.py fix(instances): a clone's recovery tells how to thaw a guest paused meanwhile 2026-11-13 08:44:05 +03:00
test_clone_permission.py fix(instances): the quota counts queued clones and pending values 2026-10-31 00:51:31 +03:00
test_cloud_init_create.py fix(instances): a VM of an architecture without firmware choices or PCI cards can be created 2026-11-12 15:21:48 +03:00
test_console_access.py fix(instances): console changes that cannot be made are refused, not reported as done 2026-11-13 22:49:28 +03:00
test_console_settings.py fix(instances): console changes that cannot be made are refused, not reported as done 2026-11-13 22:49:28 +03:00
test_cpu_mode.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_create_dialog_cpu.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_create_form_input.py fix(i18n): form fields shown with their form's label are translated 2026-11-21 15:41:11 +03:00
test_create_instance.py fix: a downloading volume is not put in a new VM or a CD-ROM; slow downloads read as bytes come 2026-11-20 16:59:01 +03:00
test_create_job.py fix(instances): a new VM's disk cache goes with the disk I/O of Settings 2026-11-13 13:58:46 +03:00
test_create_page_js.py fix(i18n): chart series and the preset announcement in the page's language 2026-11-09 14:41:48 +03:00
test_create_rollback.py fix(instances): a VM of an architecture without firmware choices or PCI cards can be created 2026-11-12 15:21:48 +03:00
test_create_wizard_url.py fix(logs): failures name their job, VM and user; the new VM form shows a list it could not load 2026-11-06 23:48:44 +03:00
test_destroy.py feat(instances): a protected VM is not deleted nor restored over 2026-11-19 22:00:25 +03:00
test_detail_reads.py fix(instances): the VM page's DRBD state does not rewrite the VM's record 2026-11-10 13:19:39 +03:00
test_detail_unreachable.py test: no test connects to a real host 2026-11-08 22:22:16 +03:00
test_disk_isolation.py fix(storages): a volume another compute's VM uses on shared storage is not deleted 2026-11-13 10:41:18 +03:00
test_disk_limit.py fix: power jobs name their action, refuse what does not apply and recover by the VM's state 2026-11-20 12:10:06 +03:00
test_disk_move_job.py fix(instances): a disk move or migration leaves one check on a stuck host 2026-11-10 13:48:14 +03:00
test_drbd_target.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_duplicate_devices.py fix: a downloading volume is not put in a new VM or a CD-ROM; slow downloads read as bytes come 2026-11-20 16:59:01 +03:00
test_error_handling.py feat(instances): a VM's owners with their rights, and XML edits kept until saved 2026-10-30 17:02:38 +03:00
test_find_address.py feat(instances): the address search finds a VM by its MAC address too 2026-10-24 22:45:47 +03:00
test_find_address_js.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_gstfsd.py fix(gstfsd): at most 4 connections at a time; one more is told it is busy 2026-11-05 18:58:13 +03:00
test_guest_info.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_host_busy.py fix(instances): a busy host is reported as busy, not as unreachable 2026-11-05 16:16:28 +03:00
test_host_devices.py fix(instances): the Host devices tab says when the host cannot give a VM's USB device 2026-11-11 22:58:34 +03:00
test_index.py refactor(instances): the VM list calls refresh_instance_database itself 2026-11-08 12:15:33 +03:00
test_index_host_alerts.py test: no test connects to a real host 2026-11-08 22:22:16 +03:00
test_instance_tabs_js.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_list_hung_host.py fix(instances): a host that does not answer no longer holds the VM lists 2026-11-13 16:07:01 +03:00
test_list_rpc.py refactor(instances): the VM list calls refresh_instance_database itself 2026-11-08 12:15:33 +03:00
test_list_unreachable.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
test_live_clone.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_create.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_live_dataloss.py test(instances): live disk and NIC posts send what their forms send 2026-11-14 14:38:25 +03:00
test_live_guest.py refactor(instances): the VM list calls refresh_instance_database itself 2026-11-08 12:15:33 +03:00
test_live_iscsi.py refactor(instances): the VM list calls refresh_instance_database itself 2026-11-08 12:15:33 +03:00
test_live_jobs.py fix(instances): Guest Info fits the tab, reads odd agent answers and says when usage is unknown 2026-11-20 10:28:35 +03:00
test_live_lvm.py fix(instances): a disk resize form grows the disk it showed 2026-11-12 22:09:34 +03:00
test_live_views.py test(instances): live disk and NIC posts send what their forms send 2026-11-14 14:38:25 +03:00
test_migrate_form.py fix(ui): a VM page on a phone opens on its tab, not under it 2026-11-22 13:04:18 +03:00
test_migrate_job.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_migration_bookkeeping.py refactor(instances): a migration merges owners with move_ownership 2026-11-08 12:20:17 +03:00
test_migration_log.py fix(migrate): a copied disk's source file is deleted only when no compute may use it 2026-11-07 22:51:25 +03:00
test_missing_fields.py fix(instances): the root password and SSH key a setting turns off are refused 2026-11-13 08:19:13 +03:00
test_moved_while_waiting.py feat(jobs): deleting a VM is a job that recovery finishes 2026-11-06 09:49:31 +03:00
test_new_disk_name.py fix: a downloading volume is not put in a new VM or a CD-ROM; slow downloads read as bytes come 2026-11-20 16:59:01 +03:00
test_owner_race.py fix(instances): two owners added at once keep a VM to one owner 2026-10-31 00:21:06 +03:00
test_page_controls.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_paused_block.py fix(instances): an owner cannot power a VM an administrator paused 2026-10-26 13:49:37 +03:00
test_pci_slots.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_pending_edits.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
test_permissions.py test: test files named by their topic, one file per topic 2026-11-06 13:48:04 +03:00
test_protected.py fix(computes): a VM that returns gets its protection, schedules and backups back 2026-11-20 08:17:23 +03:00
test_quota.py test(quota): the concurrent resize test checks what happened to each request 2026-11-08 21:20:06 +03:00
test_resize_input.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_root_pass.py fix(instances): the root password and SSH key a setting turns off are refused 2026-11-13 08:19:13 +03:00
test_snapshot_delete_job.py fix(jobs): a busy message names what the job in the way works on 2026-11-19 21:35:28 +03:00
test_snapshot_jobs.py test: no test connects to a real host 2026-11-08 22:22:16 +03:00
test_snapshot_views.py fix(instances): an owner is shown no host files, in the API or on the delete page 2026-11-12 22:09:16 +03:00
test_states.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
test_stats_sample.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_stats_tab.py feat(instances): a VM's stats in one grid, its logs a switch away 2026-10-30 23:41:17 +03:00
test_table_filter_js.py fix(templates): the list pages search their rows as text, with one script 2026-10-25 23:08:42 +03:00
test_tags.py feat(computes): a host's Instances page is the VM list of its VMs 2026-11-21 20:34:51 +03:00
test_templates.py fix(instances): a failed power cycle says the VM stays off; templates have no autostart 2026-11-11 15:17:59 +03:00
test_vm_addresses.py perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
test_vm_audit_rows.py fix(instances): console changes that cannot be made are refused, not reported as done 2026-11-13 22:49:28 +03:00
test_vm_page_records.py fix(instances): the page of a VM removed outside the panel sends the user to the list 2026-11-05 18:08:03 +03:00
test_vm_report.py fix(ui): the settings index stays at hand on a phone; one wording in Turkish 2026-11-22 16:43:34 +03:00
test_vm_states.py fix(ui): sizes in the units the forms ask in, percentages as the language writes them 2026-11-22 21:03:46 +03:00
test_xss.py test: classes that use no database are SimpleTestCase 2026-11-06 13:48:03 +03:00