@ -299,10 +299,10 @@ func TestValidateConfig(t *testing.T) {
{ ` { "version": " ` + v + ` ", "credential": { "accessKey": "minio", "secretKey": "minio123" }, "region": "us-east-1", "browser": "on", "notify": { "elasticsearch": { "1": { "enable": true, "format": "namespace", "url": "example.com", "index": "myindex" } }}} ` , true } ,
// Test 27 - Test Format for Redis
{ ` { "version": " ` + v + ` ", "credential": { "accessKey": "minio", "secretKey": "minio123" }, "region": "us-east-1", "browser": "on", "notify": { "redis": { "1": { "enable": true, "format": "invalid", "address": "example.com", "password": "xxx", "key": "key1" } }}} ` , false } ,
{ ` { "version": " ` + v + ` ", "credential": { "accessKey": "minio", "secretKey": "minio123" }, "region": "us-east-1", "browser": "on", "notify": { "redis": { "1": { "enable": true, "format": "invalid", "address": "example.com:80 ", "password": "xxx", "key": "key1" } }}} ` , false } ,
// Test 28 - Test valid Format for Redis
{ ` { "version": " ` + v + ` ", "credential": { "accessKey": "minio", "secretKey": "minio123" }, "region": "us-east-1", "browser": "on", "notify": { "redis": { "1": { "enable": true, "format": "namespace", "address": "example.com", "password": "xxx", "key": "key1" } }}} ` , true } ,
{ ` { "version": " ` + v + ` ", "credential": { "accessKey": "minio", "secretKey": "minio123" }, "region": "us-east-1", "browser": "on", "notify": { "redis": { "1": { "enable": true, "format": "namespace", "address": "example.com:80 ", "password": "xxx", "key": "key1" } }}} ` , true } ,
}
for i , testCase := range testCases {