Sanjay Santhanam
41e8777609
fix: correct always-true state check in DockerVM.stop()
...
The condition 'state != "stopped" or state != "exited"' is a tautology,
so the state check was a no-op and a stop request was sent even for a
container that had already exited.
_get_container_state() never returns "stopped" (only "running",
"paused" or "exited"), so the intended negation of the condition used in
_fix_permissions() requires 'and', not 'or' (De Morgan's law).
Added a regression test asserting no stop query is issued for an
already-exited container.
2026-07-25 10:30:16 -07:00
grossmj
0624c1b945
Deactivate 'use default IOU values' by default and update RAM/NVRAM values
2026-03-10 20:28:00 +08:00
grossmj
715b7032bc
Fix tests
2026-02-20 15:51:49 +08:00
grossmj
f2aaf5ab38
Docker API version requirements and process to handle older daemons
2025-11-17 22:26:18 +10:00
grossmj
bae6221991
Set name of container in Docker
2025-11-17 10:59:05 +10:00
grossmj
2b7eb91694
Add edk2-stable202502 UEFI firmwares and try to first use firmwares from the ovmf package if installed. Fixes #2494
2025-04-18 17:13:29 +07:00
grossmj
df56955bf0
Use license instead of licence
2024-12-17 15:01:01 +07:00
grossmj
91e9fa1cbc
Fix tests
2024-12-16 18:13:51 +07:00
grossmj
af7fbe6bb4
Fix tests
2024-11-27 15:18:49 +10:00
grossmj
52a7696618
Fix tests
2024-11-07 14:48:57 +10:00
grossmj
7bf17392dd
Do not use "ide" if there is a disk image and no interface type has been explicitly configured.
2024-11-07 14:37:26 +10:00
grossmj
48b7e6ca50
Fix run Docker containers with user namespaces enabled. Fixes #2414
2024-10-26 19:03:05 +10:00
Jeremy Grossmann
af6f34b2ca
Revert "Backport auxiliary console support for Qemu, Docker and Dynamips nodes"
2024-09-23 13:10:58 +07:00
grossmj
c41c11eb34
Backport auxiliary console support for Qemu, Docker and Dynamips nodes
2024-09-22 18:29:04 +07:00
grossmj
22f022cc22
Fix for running Docker containers with user namespaces enabled
2024-09-19 10:40:22 +07:00
grossmj
8429494280
Test base MAC address for Docker VMs
2024-09-19 10:19:07 +07:00
grossmj
3792901dc7
Support for configuring MAC address in Docker containers
2024-09-18 16:30:22 +07:00
grossmj
b194e48649
Forbid unsafe Qemu additional options
2024-07-06 12:24:22 +02:00
grossmj
46a9fdb61d
Remove event_loop
2024-05-09 17:53:02 +07:00
grossmj
9958b876cf
Do not run Docker VM tests on Windows
2024-05-09 17:36:58 +07:00
grossmj
33499be425
Fix warnings in tests
2024-05-09 17:11:12 +07:00
grossmj
c076275bd0
Fix test create image with not supported characters by filesystem. Fixes #2375
2024-05-09 16:01:55 +07:00
grossmj
2609849507
Fix tests after updating error message when busybox is not installed.
2024-04-23 18:00:37 +07:00
grossmj
0137688ba7
Test busybox is installed
2024-02-22 13:05:48 +08:00
grossmj
84db3b9996
Fix not all Docker resources are copied to a writable location
2024-02-22 12:59:44 +08:00
grossmj
1a53c9aabf
Backport from v3: install Docker resources in a writable location at runtime.
2024-02-14 16:13:45 +08:00
grossmj
34ee75e1f1
Fix tests running on Python 3.12
2023-10-23 16:12:12 +10:00
grossmj
c2783d355f
Fix test_create_vnc test
2023-08-27 18:41:25 +10:00
grossmj
c181df6935
Only fetch Qemu version once when starting Qemu + only add speed/duplex for virtio-net-pci with Qemu version >= 2.12
2023-07-06 16:29:55 +10:00
grossmj
6c8c5c1787
Ignore uefi test on Windows
2023-07-04 13:31:21 +10:00
grossmj
f541c03b94
Fix uefi test on Windows
2023-07-04 13:22:18 +10:00
grossmj
0a14a08d54
Use recent OVMF firmware (stable-202305) and use flash drives to configure Qemu command line
2023-07-04 13:06:34 +10:00
grossmj
d5cfb85de5
Backport UEFI boot mode support for Qemu VMs
2023-06-23 11:18:25 +09:30
grossmj
71d1aefb65
Test Qemu command with virtio-net-pci adapter
2023-06-03 20:57:23 +09:30
Jeremy Grossmann
088ae699de
Merge pull request #2223 from GNS3/fix/2214
...
Use proc.communicate() when checking for subprocess output
2023-06-02 20:29:40 +09:30
grossmj
4338afab7f
Fix tests
2023-06-02 20:16:06 +09:30
grossmj
d03e7ac9c5
Fix tests
2023-05-14 14:20:45 +08:00
grossmj
f08ce9d3f1
Check for colon in project name. Fixes #2203
2023-03-19 18:26:26 +10:00
grossmj
7968ee7ff2
Check swtpm version and start swtpm before qemu
2023-02-26 20:51:24 +10:00
grossmj
997e0ad6ee
Fix more tests
2023-01-10 11:22:12 +08:00
grossmj
eb3fc1bb3a
Fix more tests
2023-01-10 11:09:27 +08:00
grossmj
e9c95ff299
Fix tests
2023-01-10 10:07:26 +08:00
grossmj
ae200d9add
Add Trusted Platform Module (TPM) support for Qemu VMs
2023-01-04 12:13:19 +08:00
grossmj
e5c8ae4bde
Use a stock BusyBox for the Docker integration
2023-01-01 17:04:48 +08:00
grossmj
46b022f726
Restore missing loop
2022-08-27 23:45:30 +02:00
grossmj
8f296e54f4
Add back loop
2022-08-27 23:41:52 +02:00
grossmj
fc7d5be736
Use pytest-asyncio auto mode
2022-08-27 21:10:17 +02:00
grossmj
d1c8f33fc5
Upgrade dev dependencies and fix issues after upgrading to pytest-aiohttp v1.0.4
2022-08-27 19:16:02 +02:00
grossmj
ec3c36d6da
Fix Docker tests
2022-06-19 21:18:54 +02:00
grossmj
527d4bb3ea
Run Xtigervnc with MIT-SHM extension disabled for Docker VNC console support. Fixes #2071
2022-06-08 00:05:24 +08:00