1
0
mirror of https://github.com/containers/netavark.git synced 2026-02-05 15:45:47 +01:00
Files
Paul Holzinger ce5267354a setup: on av errors cleanup again
When aardvark-dns error out at the end we already configured interfaces
+ firewall rules for the driver but because we return a error podman
considers this a failure and teardown is never called.

Netavark should always cleanup on its own. So on errors make sure to
tear down the drivers again.

Fixes #1121

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 73e9911804)
2024-12-04 18:28:52 +01:00
..
2024-06-25 13:20:54 +02:00
2023-05-22 15:10:53 +00:00
2024-05-07 11:39:28 +02:00
2021-12-06 18:17:34 +01:00

Netavark integration test with bats

Running tests

To run the tests locally in your sandbox, you can use one of these methods:

  • bats ./test/001-basic.bats # runs just the specified test
  • bats ./test/ # runs all

The tests need root privileges to create network namespaces, so you either have to run the test as root or in a user namespace. Because the tests use iptables you also need write access to /run/xtables.lock. You can use podman unshare --rootless-netns bats test/ to run the tests as rootless user.

Requirements

  • jq
  • iproute2
  • iptables
  • firewalld
  • dbus-daemon
  • ncat