Add default firewall rules and fix tests in the github flow.

This commit is contained in:
Givi Khojanashvili
2023-03-23 16:54:04 +04:00
parent 9eb5de6d62
commit 4c56578b0c
7 changed files with 111 additions and 38 deletions
+7
View File
@@ -6,6 +6,7 @@ import (
"net"
"net/netip"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
@@ -945,6 +946,12 @@ func TestEngine_firewallManager(t *testing.T) {
if runtime.GOOS != "linux" {
t.Skipf("firewall manager not supported in the: %s", runtime.GOOS)
return
} else {
_, err := exec.LookPath("iptables")
if err != nil {
t.Skipf("iptables not found: %v", err)
return
}
}
ctx, cancel := context.WithTimeout(CtxInitState(context.Background()), 10*time.Second)