This repository has been archived on 2023-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2016-07-25 20:00:28 +00:00
|
|
|
package memory
|
|
|
|
|
|
|
|
import (
|
2016-11-22 23:35:46 +00:00
|
|
|
"os"
|
2016-07-25 20:00:28 +00:00
|
|
|
"testing"
|
|
|
|
|
2017-07-25 20:45:17 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
2018-09-03 06:44:44 +00:00
|
|
|
|
|
|
|
"github.com/dexidp/dex/storage"
|
|
|
|
"github.com/dexidp/dex/storage/conformance"
|
2016-07-25 20:00:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestStorage(t *testing.T) {
|
2016-11-22 23:35:46 +00:00
|
|
|
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-25 20:00:28 +00:00
|
|
|
}
|