feat: enhance evobgp with new command-line tools for bundle management, including pull, verify, and apply functionalities. Update go.mod to include necessary dependencies and complete todos in architecture plan for improved observability and deployment practices.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package birdfmt
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestRenderProtocolBGPIPv4_Validation(t *testing.T) {
|
||||
_, err := RenderProtocolBGPIPv4(BGPPeerIPv4Options{})
|
||||
if err == nil {
|
||||
t.Fatal("expected error")
|
||||
}
|
||||
}
|
||||
|
||||
func TestRenderProtocolBGPIPv4_ExportAll(t *testing.T) {
|
||||
got, err := RenderProtocolBGPIPv4(BGPPeerIPv4Options{
|
||||
ProtocolName: "p",
|
||||
LocalIP: "192.0.2.1",
|
||||
LocalASN: 1,
|
||||
NeighborIP: "192.0.2.2",
|
||||
NeighborASN: 2,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(got, "export all;") {
|
||||
t.Fatal(got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user