mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Force iptables driver for netavark tests
Firewalld cannot be used because it can connect to the dbus api but talks to firewalld in the host namespace. This will affact your host badly and also causes tests to fail. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -89,6 +89,10 @@ var _ = Describe("run netavark", func() {
|
||||
if err != nil {
|
||||
Fail("Failed to create netns")
|
||||
}
|
||||
|
||||
// Force iptables driver, firewalld is broken inside the extra
|
||||
// namespace because it still connects to firewalld on the host.
|
||||
_ = os.Setenv("NETAVARK_FW", "iptables")
|
||||
})
|
||||
|
||||
JustBeforeEach(func() {
|
||||
@ -109,6 +113,8 @@ var _ = Describe("run netavark", func() {
|
||||
|
||||
netns.UnmountNS(netNSContainer)
|
||||
netNSContainer.Close()
|
||||
|
||||
_ = os.Unsetenv("NETAVARK_FW")
|
||||
})
|
||||
|
||||
It("test basic setup", func() {
|
||||
|
Reference in New Issue
Block a user