From 123ddc274552b5fb52d5961aa9f741d93988b2b1 Mon Sep 17 00:00:00 2001 From: Luwei Ge Date: Fri, 25 Sep 2020 15:37:30 -0400 Subject: [PATCH] prerelease for 1.2.0 and one more unit test (#74) --- apigee/proxies_service_test.go | 23 +++++++++++++++++++++++ go.mod | 4 ++-- go.sum | 8 ++++---- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/apigee/proxies_service_test.go b/apigee/proxies_service_test.go index 7792356..c1a5992 100644 --- a/apigee/proxies_service_test.go +++ b/apigee/proxies_service_test.go @@ -317,3 +317,26 @@ func TestGetGCPProxyDeployment(t *testing.T) { t.Errorf("want no error got %v", err) } } + +func TestSmartFilter(t *testing.T) { + strs := []string{ + "test", + "test~", + "#test", + "test#", + "#test#", + } + want := []bool{ + true, + false, + true, + true, + false, + } + + for i, s := range strs { + if smartFilter(s) != want[i] { + t.Errorf("want %v for %s, got %v", want[i], s, !want[i]) + } + } +} diff --git a/go.mod b/go.mod index 4010daf..3715cd0 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/apigee/apigee-remote-service-cli go 1.15 require ( - github.com/apigee/apigee-remote-service-envoy v1.1.1-0.20200915154109-36f83ead4f05 - github.com/apigee/apigee-remote-service-golib v1.1.1-0.20200909162641-609ce6fb9795 + github.com/apigee/apigee-remote-service-envoy v1.2.0-rc.1 + github.com/apigee/apigee-remote-service-golib v1.2.0-rc.1 github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d github.com/lestrrat-go/jwx v1.0.4 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 7ba3219..e34755d 100644 --- a/go.sum +++ b/go.sum @@ -19,10 +19,10 @@ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2c github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apigee/apigee-remote-service-envoy v1.1.1-0.20200915154109-36f83ead4f05 h1:ZZG+1NButNqyuoBh5oaxcl510R8GNm7NHT8FJbSqfRQ= -github.com/apigee/apigee-remote-service-envoy v1.1.1-0.20200915154109-36f83ead4f05/go.mod h1:Mgumsv86sEZY6cfdsQ3XOQYKNoU8xDCdr9HCk8hwCwU= -github.com/apigee/apigee-remote-service-golib v1.1.1-0.20200909162641-609ce6fb9795 h1:xCuYMqqaN416yggXJG0RX+gORQennCi0NDnofH4Sfgk= -github.com/apigee/apigee-remote-service-golib v1.1.1-0.20200909162641-609ce6fb9795/go.mod h1:J/2GDsnbdp7dyVWCTlmVs6+Tz7VWIo1F9yoZvBhvwe0= +github.com/apigee/apigee-remote-service-envoy v1.2.0-rc.1 h1:EdJwgboD/HvyT0ocuxmg3pbVg5UGv3C1hDbSwbGV7Ac= +github.com/apigee/apigee-remote-service-envoy v1.2.0-rc.1/go.mod h1:Q4hnQ5rkYoGWiFupIamC2HMAEQTw6EIrhUkkuFvTx5Q= +github.com/apigee/apigee-remote-service-golib v1.2.0-rc.1 h1:IHXfLJSkcccxn/yvbsClLRVHnVivvhZ+K1Ucd+grPNo= +github.com/apigee/apigee-remote-service-golib v1.2.0-rc.1/go.mod h1:J/2GDsnbdp7dyVWCTlmVs6+Tz7VWIo1F9yoZvBhvwe0= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=