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"
|
|
|
|
|
2017-07-26 02:15:17 +05:30
|
|
|
"github.com/sirupsen/logrus"
|
2018-09-03 12:14:44 +05:30
|
|
|
|
|
|
|
"github.com/dexidp/dex/storage"
|
|
|
|
"github.com/dexidp/dex/storage/conformance"
|
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
|
|
|
}
|