mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 06:32:21 +08:00

* refactor remote cache settings * fix cache error getting treating as application error * fix cache error getting treating as application error
24 lines
472 B
Go
24 lines
472 B
Go
package remotecache
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
)
|
|
|
|
func TestIntegrationMemcachedCacheStorage(t *testing.T) {
|
|
if testing.Short() {
|
|
t.Skip("skipping integration test")
|
|
}
|
|
|
|
u, ok := os.LookupEnv("MEMCACHED_HOSTS")
|
|
if !ok || u == "" {
|
|
t.Skip("No Memcached hosts provided")
|
|
}
|
|
|
|
opts := &setting.RemoteCacheSettings{Name: memcachedCacheType, ConnStr: u}
|
|
client := createTestClient(t, opts, nil)
|
|
runTestsForClient(t, client)
|
|
}
|