mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
chore: fix dependabot alerts (#3051)
Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
30467e60cf
commit
b9d453ca93
@@ -190,7 +190,7 @@ func ParseRedisUniversalOptions(redisConfig map[string]interface{}, //nolint: go
|
||||
}
|
||||
|
||||
if val, ok := getBool(redisConfig, "disable_identity", log); ok {
|
||||
opts.DisableIndentity = val
|
||||
opts.DisableIdentity = val
|
||||
}
|
||||
|
||||
if val, ok := getString(redisConfig, "identity_suffix", false, log); ok {
|
||||
|
||||
@@ -127,7 +127,7 @@ func TestRedisOptions(t *testing.T) {
|
||||
So(options.ReadOnly, ShouldEqual, false)
|
||||
So(options.RouteByLatency, ShouldEqual, false)
|
||||
So(options.RouteRandomly, ShouldEqual, false)
|
||||
So(options.DisableIndentity, ShouldEqual, false)
|
||||
So(options.DisableIdentity, ShouldEqual, false)
|
||||
So(options.IdentitySuffix, ShouldEqual, "")
|
||||
So(options.UnstableResp3, ShouldEqual, false)
|
||||
|
||||
@@ -209,7 +209,7 @@ func TestRedisOptions(t *testing.T) {
|
||||
So(options.ReadOnly, ShouldEqual, true)
|
||||
So(options.RouteByLatency, ShouldEqual, false)
|
||||
So(options.RouteRandomly, ShouldEqual, true)
|
||||
So(options.DisableIndentity, ShouldEqual, false)
|
||||
So(options.DisableIdentity, ShouldEqual, false)
|
||||
So(options.IdentitySuffix, ShouldEqual, "test")
|
||||
So(options.UnstableResp3, ShouldEqual, true)
|
||||
|
||||
@@ -287,7 +287,7 @@ func TestRedisOptions(t *testing.T) {
|
||||
So(options.ReadOnly, ShouldEqual, false)
|
||||
So(options.RouteByLatency, ShouldEqual, false)
|
||||
So(options.RouteRandomly, ShouldEqual, false)
|
||||
So(options.DisableIndentity, ShouldEqual, false)
|
||||
So(options.DisableIdentity, ShouldEqual, false)
|
||||
So(options.IdentitySuffix, ShouldEqual, "")
|
||||
So(options.UnstableResp3, ShouldEqual, false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user