We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7940f commit 6a020d2Copy full SHA for 6a020d2
cns/middlewares/k8sSwiftV2_linux_test.go
@@ -378,9 +378,10 @@ func TestSetRoutesFailure(t *testing.T) {
378
}
379
380
func TestAddRoutes(t *testing.T) {
381
+ middleware := K8sSWIFTv2Middleware{Cli: mock.NewClient()}
382
cidrs := []string{"10.0.0.0/24", "20.0.0.0/24"}
383
gatewayIP := "192.168.1.1"
- routes := addRoutes(cidrs, gatewayIP)
384
+ routes := middleware.addRoutes(cidrs, gatewayIP)
385
expectedRoutes := []cns.Route{
386
{
387
IPAddress: "10.0.0.0/24",
0 commit comments