17 lines
416 B
Go
17 lines
416 B
Go
package catalogue
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestPrintRehearsalRuleset(t *testing.T) {
|
|
if os.Getenv("PRINT_RULESET") == "" {
|
|
t.Skip("set PRINT_RULESET")
|
|
}
|
|
rules := mustFilter(t, Resolution{Modules: []Manifest{
|
|
{Module: "pub", Listens: []Listening{{Port: 8099, From: FromMesh, Why: "the thing it serves"}}},
|
|
}}, nil)
|
|
t.Log("\n" + AsNftables(rules, []string{"192.0.2.20"}, true, nil, nil, "mesh0"))
|
|
}
|