Skip to content

Commit

Permalink
Fix policy route tests and go.mod update (#1242)
Browse files Browse the repository at this point in the history
Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
  • Loading branch information
LionelJouin authored Mar 14, 2022
1 parent 113c4e4 commit 9b901ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/google/uuid v1.1.2
github.com/nats-io/nats-streaming-server v0.24.3
github.com/nats-io/stan.go v0.10.2
github.com/networkservicemesh/api v1.1.2-0.20220119092736-21eda250c390
github.com/networkservicemesh/api v1.2.1-0.20220314135017-fe3ca7556bdc
github.com/open-policy-agent/opa v0.16.1
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
github.com/nats-io/stan.go v0.10.2 h1:gQLd05LhzmhFkHm3/qP/klYHfM/hys45GyHa1Uly/kI=
github.com/nats-io/stan.go v0.10.2/go.mod h1:vo2ax8K2IxaR3JtEMLZRFKIdoK/3o1/PKueapB7ezX0=
github.com/networkservicemesh/api v1.1.2-0.20220119092736-21eda250c390 h1:GREf14twiQkUInGh+M0qQH+jNQ9uvTfQC2FVieDd7tQ=
github.com/networkservicemesh/api v1.1.2-0.20220119092736-21eda250c390/go.mod h1:B6meq/SWjWR6bGXZdXPfbOeaBK+T1JayLdtEJQCsXKU=
github.com/networkservicemesh/api v1.2.1-0.20220314135017-fe3ca7556bdc h1:PC/hVXFD3qkNRK81ap2MZdYHY2kJfYUhIk9EIkAJiJY=
github.com/networkservicemesh/api v1.2.1-0.20220314135017-fe3ca7556bdc/go.mod h1:B6meq/SWjWR6bGXZdXPfbOeaBK+T1JayLdtEJQCsXKU=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
Expand Down
6 changes: 3 additions & 3 deletions pkg/networkservice/common/policyroute/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ func TestCheckReloadedPolicies(t *testing.T) {
defer cancel()
// Create policies
policies := []*networkservice.PolicyRoute{
{From: "172.16.2.201/24", Proto: 6, Port: 6666, Routes: []*networkservice.Route{{
{From: "172.16.2.201/24", Proto: "6", DstPort: "6666", Routes: []*networkservice.Route{{
Prefix: "172.16.3.0/24",
NextHop: "172.16.2.200",
}}},
{Proto: 17, Port: 6666},
{Proto: 17, Port: 5555, Routes: []*networkservice.Route{{
{Proto: "17", DstPort: "6666"},
{Proto: "17", DstPort: "5555", Routes: []*networkservice.Route{{
Prefix: "2004::5/120",
NextHop: "2004::6",
}}},
Expand Down

0 comments on commit 9b901ae

Please sign in to comment.