feat: enhance EvoBGP with new command-line options for the evobgp-agent, including a watch command for periodic configuration updates. Update go.mod with additional dependencies and improve Docker Compose setup for new services, including NATS and various worker components.
This commit is contained in:
@@ -2,7 +2,6 @@ package birdfmt
|
||||
|
||||
import (
|
||||
"net/netip"
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -37,11 +36,12 @@ func TestRenderExportFilterIPv6(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
want, err := os.ReadFile("testdata/scenarios/standard_layout/bird.d/evobgp_filters_v6.conf")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if strings.TrimSpace(got) != strings.TrimSpace(string(want)) {
|
||||
t.Fatalf("mismatch\n--- got ---\n%s\n--- want ---\n%s", got, string(want))
|
||||
want := `filter evobgp_export_v6 {
|
||||
if net ~ [ 2001:db8::/32 ] then accept;
|
||||
reject;
|
||||
}
|
||||
`
|
||||
if strings.TrimSpace(got) != strings.TrimSpace(want) {
|
||||
t.Fatalf("mismatch\n--- got ---\n%s\n--- want ---\n%s", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ func TestRenderMainBirdConf_Preamble(t *testing.T) {
|
||||
if !strings.HasPrefix(got, "# operator note\n") {
|
||||
t.Fatalf("expected preamble prefix, got:\n%s", got)
|
||||
}
|
||||
if !strings.Contains(got, "# # already commented") {
|
||||
if !strings.Contains(got, "# already commented") {
|
||||
t.Fatal(got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user