Files
napalm-proxmox/tests
Christian Manivong 0dc6fcb43a
CI / test (3.10) (push) Successful in 34s
CI / test (3.11) (push) Successful in 31s
CI / test (3.12) (push) Successful in 35s
CI / test (3.10) (pull_request) Successful in 32s
CI / test (3.11) (pull_request) Successful in 32s
CI / test (3.12) (pull_request) Successful in 35s
test: destroy_vm on a stopped VM no longer spins for a minute and gigabytes
test_destroy_vm_already_stopped left the stop task a bare MagicMock, so
_wait_for_task never saw "stopped" and looped for the full 60 s timeout
with time.sleep patched out. Every call landed in mock_calls: the test
took 60 s and up to 6 GB, and the new CI's 3.12 job was killed for it
(exit 137).

The stop call now raises, as Proxmox does for a VM that is not running --
which is the case the test is named for. The suite drops from 63 s to 4 s.
2026-10-07 08:13:00 +02:00
..
2026-05-29 09:24:39 +02:00
2026-05-29 09:24:39 +02:00
2026-05-29 09:24:39 +02:00
2026-05-29 09:24:39 +02:00
2026-05-29 09:24:39 +02:00