mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
c09fe3c3b4
* wip: fix remote cache for redis connstr parsing and non-negative expires for #17377 TODO: finish parse, check zero case, find out why negative duration in the first place * finish parse. Still TODO, find out negative value, and decide if would be better to make database specific entries in the .ini file * update ini files * remove accidental uncomment in defaults.ini * auth_proxy: expiration non-negative so expiration is not in the past * fix test, revert neg in redis * review: use errutil
17 lines
313 B
Go
17 lines
313 B
Go
// +build redis
|
|
|
|
package remotecache
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
)
|
|
|
|
func TestRedisCacheStorage(t *testing.T) {
|
|
|
|
opts := &setting.RemoteCacheOptions{Name: redisCacheType, ConnStr: "addr=localhost:6379"}
|
|
client := createTestClient(t, opts, nil)
|
|
runTestsForClient(t, client)
|
|
}
|