1
0
mirror of https://github.com/containers/netavark.git synced 2026-02-05 06:45:56 +01:00

4 Commits

Author SHA1 Message Date
Mario Loriedo
0fa48211bd Remove iptables support
Code and documentation changes to remove the support of
iptables as a firewall driver.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-11-17 19:02:16 +01:00
Paul Holzinger
dbc9200302 test: add new test program for connection checks
Use this to replace ncat. ncat is flaky and harder to use and with
the latest version it seems they broke us in a way that makes the flags
we use incompatible[1].

As a nice benefit this makes the test code itself simpler and faster as
we get rid of the is port bound polling/sleeps.

[1] https://github.com/containers/netavark/pull/1282

Fixes: #1076

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-07-21 18:16:34 +02:00
Paul Holzinger
d430758493 test: use ncat not nc
nc can be provided by several implementations. We depend on the nmap
version so make sure to use that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-02 11:29:40 +02:00
Paul Holzinger
1ffe6bd1d0 Add netavark integration tests
Add bats tests for netavark. The test run netavark in completely
separate network namespaces to not leak any information on the host. The
test runs with the iptables driver but also with the firewalld driver
see test/020-firewalld.bats. This is important to cover all firewall
driver code paths.

You can run the tests with `sudo bats test/` or `podman unshare
--rootless-netns bats test/`. Note that the `--rootless-netns` flag is
called `--rootless-cni` for podman < v4.0.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-12-06 18:17:34 +01:00