Skip to content

Commit

Permalink
Bump dependencies and fix mysql test.
Browse files Browse the repository at this point in the history
  • Loading branch information
iegomez committed May 23, 2023
1 parent 9e9d90b commit 6924985
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 134 deletions.
6 changes: 3 additions & 3 deletions backends/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func TestMysqlTls(t *testing.T) {
Convey("Given custom ssl disabled, it should fail", t, func() {
mysql, err := NewMysql(authOpts, log.DebugLevel, hashing.NewHasher(authOpts, "mysql"))
So(err, ShouldBeError)
So(err.Error(), ShouldContainSubstring, "Error 1045: Access denied for user")
So(err.Error(), ShouldContainSubstring, "Access denied for user")
So(mysql.DB, ShouldBeNil)
})

Expand Down Expand Up @@ -271,7 +271,7 @@ func TestMysqlMutualTls(t *testing.T) {
Convey("Given custom ssl enabled and no client certificate is given, it should fail", t, func() {
mysql, err := NewMysql(authOpts, log.DebugLevel, hashing.NewHasher(authOpts, "mysql"))
So(err, ShouldBeError)
So(err.Error(), ShouldContainSubstring, "Error 1045: Access denied for user")
So(err.Error(), ShouldContainSubstring, "Access denied for user")
So(mysql.DB, ShouldBeNil)
})

Expand All @@ -281,7 +281,7 @@ func TestMysqlMutualTls(t *testing.T) {
Convey("Given custom ssl enabled and unauthorized client certificate is given, it should fail", t, func() {
mysql, err := NewMysql(authOpts, log.DebugLevel, hashing.NewHasher(authOpts, "mysql"))
So(err, ShouldBeError)
So(err.Error(), ShouldContainSubstring, "Error 1045: Access denied for user")
So(err.Error(), ShouldContainSubstring, "Access denied for user")
So(mysql.DB, ShouldBeNil)
})

Expand Down
44 changes: 22 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,46 @@ go 1.18

require (
github.com/go-redis/redis/v8 v8.11.5
github.com/go-sql-driver/mysql v1.6.0
github.com/go-sql-driver/mysql v1.7.1
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/golang/protobuf v1.5.3
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.6
github.com/lib/pq v1.10.9
github.com/mattn/go-sqlite3 v2.0.3+incompatible
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
github.com/sirupsen/logrus v1.8.1
github.com/robertkrimen/otto v0.2.1
github.com/sirupsen/logrus v1.9.2
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a
github.com/stretchr/testify v1.7.0
go.mongodb.org/mongo-driver v1.9.1
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
google.golang.org/grpc v1.47.0
github.com/stretchr/testify v1.8.1
go.mongodb.org/mongo-driver v1.11.6
golang.org/x/crypto v0.9.0
google.golang.org/grpc v1.55.0
)

require (
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/gopherjs/gopherjs v0.0.0-20190328170749-bb2674552d8f // indirect
github.com/jtolds/gls v4.20.0+incompatible // indirect
github.com/klauspost/compress v1.15.6 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/montanaflynn/stats v0.7.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/smartystreets/assertions v0.0.0-20190401211740-f487f9de1cd3 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.1 // indirect
github.com/xdg-go/stringprep v1.0.3 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
github.com/xdg-go/stringprep v1.0.4 // indirect
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
golang.org/x/net v0.0.0-20220531201128-c960675eff93 // indirect
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/genproto v0.0.0-20220602131408-e326c6e8e9c8 // indirect
google.golang.org/protobuf v1.28.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sync v0.2.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/sourcemap.v1 v1.0.5 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 6924985

Please sign in to comment.