mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
524 B
30 lines
524 B
package ent |
|
|
|
import ( |
|
"os" |
|
"testing" |
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
"github.com/dexidp/dex/storage" |
|
"github.com/dexidp/dex/storage/conformance" |
|
) |
|
|
|
func newSQLiteStorage() storage.Storage { |
|
logger := &logrus.Logger{ |
|
Out: os.Stderr, |
|
Formatter: &logrus.TextFormatter{DisableColors: true}, |
|
Level: logrus.DebugLevel, |
|
} |
|
|
|
cfg := SQLite3{File: ":memory:"} |
|
s, err := cfg.Open(logger) |
|
if err != nil { |
|
panic(err) |
|
} |
|
return s |
|
} |
|
|
|
func TestSQLite3(t *testing.T) { |
|
conformance.RunTests(t, newSQLiteStorage) |
|
}
|
|
|