From 9b901ae45ae1635873969c6b3625eb6747358899 Mon Sep 17 00:00:00 2001 From: Lionel Jouin Date: Mon, 14 Mar 2022 16:38:51 +0100 Subject: [PATCH] Fix policy route tests and go.mod update (#1242) Signed-off-by: Lionel Jouin --- go.mod | 2 +- go.sum | 4 ++-- pkg/networkservice/common/policyroute/server_test.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index d15f24733..4ecb978b3 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 8abc0e693..17fe6d97e 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/pkg/networkservice/common/policyroute/server_test.go b/pkg/networkservice/common/policyroute/server_test.go index a30fff66d..4f11301fd 100644 --- a/pkg/networkservice/common/policyroute/server_test.go +++ b/pkg/networkservice/common/policyroute/server_test.go @@ -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", }}},