2016-07-26 01:30:28 +05:30
|
|
|
package memory
|
|
|
|
|
|
|
|
import (
|
2016-11-23 05:05:46 +05:30
|
|
|
"os"
|
2016-07-26 01:30:28 +05:30
|
|
|
"testing"
|
|
|
|
|
2016-11-23 05:05:46 +05:30
|
|
|
"github.com/coreos/dex/storage"
|
2016-09-18 06:14:53 +05:30
|
|
|
"github.com/coreos/dex/storage/conformance"
|
2017-07-26 02:15:17 +05:30
|
|
|
"github.com/sirupsen/logrus"
|
2016-07-26 01:30:28 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
func TestStorage(t *testing.T) {
|
2016-11-23 05:05:46 +05:30
|
|
|
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
|
|
|
}
|