Skip to content

Commit

Permalink
prerelease for 1.2.0 and one more unit test (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockspore authored Sep 25, 2020
1 parent 92d203d commit 123ddc2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
23 changes: 23 additions & 0 deletions apigee/proxies_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
}
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 123ddc2

Please sign in to comment.