Netavark integration test with bats
November 17, 2025 ยท View on GitHub
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. You can use podman unshare --rootless-netns bats test/ to run the tests as rootless user.
Requirements
- jq
- iproute2
- firewalld
- dbus-daemon