Commit Graph

4 Commits

Author SHA1 Message Date
Christophe Fergeau
976f29d2d4 Add go API for /services/dhcp/leases
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2025-09-24 16:46:33 +02:00
Christophe Fergeau
bc938b8551 gvproxy: command: Add AddServiceEndpoint
This adds GvproxyCommand.AddServiceEndpoint() for the newly added
--services argument. This API is a helper for users of gvproxy to have a
more convenient way to generate its command line.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2025-01-30 17:17:47 +01:00
Gunjan Vyas
233ecd891f test: Add a test to check an already exposed port cannot be exposed again
This also fixes a pre-existing issue with this test file, an exposed
port was not unexposed before attempting to expose it again, which
caused a test failure after the PortsForwarder.Expose() fix.

Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
2025-01-10 15:13:25 +01:00
Luca Stocchi
b525dc8c69 test: move test utils files to the test-utils folder
Tests that are currently on the main branch only runs against a qemu VM. We have other use cases that needs to be tested like running against a vfkit VM.
This commit reorganizes the tests code a bit by moving the files that can be shared to support different implementation in their own folder.
The reasoning behind this is that every hypervisor should have its own beforeSuite func to download/run a specific VM image. By moving the utils files we can reuse the same code.

For the same reason the code targeting qemu is moved to the test-qemu folder. By doing so, we can run the tests within the test-qemu folder on the ubuntu workflow and, in future, when the nested virt will be enabled on github runners, the vfkit tests on macOS.

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
2025-01-09 15:56:54 +01:00