dex/storage/memory/memory_test.go

24 lines
434 B
Go
Raw Normal View History

2016-07-26 01:30:28 +05:30
package memory
import (
"os"
2016-07-26 01:30:28 +05:30
"testing"
"github.com/Sirupsen/logrus"
"github.com/coreos/dex/storage"
"github.com/coreos/dex/storage/conformance"
2016-07-26 01:30:28 +05:30
)
func TestStorage(t *testing.T) {
logger := &logrus.Logger{
Out: os.Stderr,
Formatter: &logrus.TextFormatter{DisableColors: true},
Level: logrus.DebugLevel,
}
newStorage := func() storage.Storage {
return New(logger)
}
conformance.RunTests(t, newStorage)
2016-07-26 01:30:28 +05:30
}