Skip to content

Commit

Permalink
Running make bins with go 1.16.7
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrodrigo committed Aug 20, 2021
1 parent 75e3dcf commit 36e20d8
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/clientBean.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func NewClientBean(factory Factory, dispatcherProvider DispatcherProvider, clust
var authProvider clientworker.AuthorizationProvider
if info.AuthorizationProvider.Enable {
authProvider, err = authorization.GetAuthProviderClient(info.AuthorizationProvider.PrivateKey)
if err != nil{
if err != nil {
return nil, err
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/server/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

//go:build tools
// +build tools

package tools
Expand Down
4 changes: 2 additions & 2 deletions common/authorization/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func cfgOAuth() config.Authorization {
OAuthAuthorizer: config.OAuthAuthorizer{
Enable: true,
JwtCredentials: config.JwtCredentials{
Algorithm: jwt.RS256.String(),
PublicKey: "public",
Algorithm: jwt.RS256.String(),
PublicKey: "public",
},
MaxJwtTTL: 12345,
},
Expand Down
4 changes: 2 additions & 2 deletions common/authorization/oauthAutorizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func (s *oauthSuite) SetupTest() {
s.cfg = config.OAuthAuthorizer{
Enable: true,
JwtCredentials: config.JwtCredentials{
Algorithm: jwt.RS256.String(),
PublicKey: "../../config/credentials/keytest.pub",
Algorithm: jwt.RS256.String(),
PublicKey: "../../config/credentials/keytest.pub",
},
MaxJwtTTL: 300000001,
}
Expand Down
16 changes: 8 additions & 8 deletions common/config/authorization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func TestPrivateKeyIsEmpty(t *testing.T) {
OAuthAuthorizer: OAuthAuthorizer{
Enable: true,
JwtCredentials: JwtCredentials{
Algorithm: "",
PublicKey: "",
Algorithm: "",
PublicKey: "",
},
MaxJwtTTL: 1000000,
},
Expand All @@ -80,8 +80,8 @@ func TestPublicKeyIsEmpty(t *testing.T) {
OAuthAuthorizer: OAuthAuthorizer{
Enable: true,
JwtCredentials: JwtCredentials{
Algorithm: "",
PublicKey: "",
Algorithm: "",
PublicKey: "",
},
MaxJwtTTL: 1000000,
},
Expand All @@ -99,8 +99,8 @@ func TestAlgorithmIsInvalid(t *testing.T) {
OAuthAuthorizer: OAuthAuthorizer{
Enable: true,
JwtCredentials: JwtCredentials{
Algorithm: "SHA256",
PublicKey: "public",
Algorithm: "SHA256",
PublicKey: "public",
},
MaxJwtTTL: 1000000,
},
Expand All @@ -118,8 +118,8 @@ func TestCorrectValidation(t *testing.T) {
OAuthAuthorizer: OAuthAuthorizer{
Enable: true,
JwtCredentials: JwtCredentials{
Algorithm: "RS256",
PublicKey: "public",
Algorithm: "RS256",
PublicKey: "public",
},
MaxJwtTTL: 1000000,
},
Expand Down
1 change: 1 addition & 0 deletions common/domain/failover_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/uber-go/tally"

"github.com/uber/cadence/common"
"github.com/uber/cadence/common/cache"
"github.com/uber/cadence/common/clock"
Expand Down
1 change: 1 addition & 0 deletions host/elastic_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

//go:build esintegration
// +build esintegration

// to run locally, make sure kafka and es is running,
Expand Down
4 changes: 2 additions & 2 deletions host/xdc/elasticsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// +build !race
// +build esintegration
//go:build !race && esintegration
// +build !race,esintegration

// to run locally, make sure kafka and es is running,
// then run cmd `go test -v ./host/xdc -run TestESCrossDCTestSuite -tags esintegration`
Expand Down
2 changes: 2 additions & 0 deletions host/xdc/integration_failover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

//go:build !race
// +build !race

// need to run xdc tests with race detector off because of ringpop bug causing data race issue

package xdc
Expand Down

0 comments on commit 36e20d8

Please sign in to comment.