Skip to content

Commit

Permalink
E2E: add test for the unnumbered BGP peering
Browse files Browse the repository at this point in the history
The test requires point-to-point connection so we cannot use any
existing infra peer. Therefore a new peer (docker container)
runs with no network, and point-to-point connections are created using
`sudo ip` commands.

There are three specs
```
Unnumbered BGP session is established and routes are verified iBGP
Unnumbered BGP session is established and routes are verified eBGP
```

Signed-off-by: karampok <karampok@gmail.com>
  • Loading branch information
karampok committed Dec 16, 2024
1 parent cc8c836 commit 79f4f21
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 1,188 deletions.
1 change: 1 addition & 0 deletions e2etests/e2etest_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func handleFlags() {
runOnHost = true
}
dump.ReportPath = reportPath
tests.FRRImage = frrImage
}

func TestMain(m *testing.M) {
Expand Down
2 changes: 1 addition & 1 deletion e2etests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ replace (
)

require (
github.com/google/go-cmp v0.6.0
github.com/metallb/frr-k8s v0.0.16
github.com/onsi/ginkgo/v2 v2.19.0
github.com/onsi/gomega v1.33.1
Expand Down Expand Up @@ -51,7 +52,6 @@ require (
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/btree v1.0.1 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
Expand Down
Loading

0 comments on commit 79f4f21

Please sign in to comment.