2019-03-03 22:04:11 +01:00
|
|
|
// +build redis
|
|
|
|
|
|
2019-03-08 20:49:16 +01:00
|
|
|
package remotecache
|
2019-03-03 04:42:11 +01:00
|
|
|
|
2019-03-03 21:48:00 +01:00
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
|
|
|
)
|
2019-03-03 04:42:11 +01:00
|
|
|
|
|
|
|
|
func TestRedisCacheStorage(t *testing.T) {
|
2019-03-03 21:48:00 +01:00
|
|
|
|
2019-06-10 15:27:08 +02:00
|
|
|
opts := &setting.RemoteCacheOptions{Name: redisCacheType, ConnStr: "addr=localhost:6379"}
|
2019-03-14 08:57:38 +01:00
|
|
|
client := createTestClient(t, opts, nil)
|
|
|
|
|
runTestsForClient(t, client)
|
2019-03-03 04:42:11 +01:00
|
|
|
}
|