wip: migrate to mono-repo. SPN has already been moved to spn/
This commit is contained in:
24
service/compat/iptables_test.go
Normal file
24
service/compat/iptables_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
//go:build linux
|
||||
|
||||
package compat
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestIPTablesChains(t *testing.T) {
|
||||
// Skip in CI.
|
||||
if testing.Short() {
|
||||
t.Skip()
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
chain, err := GetIPTablesChains()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if len(chain) < 35 {
|
||||
t.Errorf("Expected at least 35 output lines, not %d", len(chain))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user