24 lines
434 B
Go
24 lines
434 B
Go
package memory
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/Sirupsen/logrus"
|
|
"github.com/coreos/dex/storage"
|
|
"github.com/coreos/dex/storage/conformance"
|
|
)
|
|
|
|
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)
|
|
}
|