mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
3d97c59032
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
26 lines
521 B
Go
26 lines
521 B
Go
package ent
|
|
|
|
import (
|
|
"log/slog"
|
|
"testing"
|
|
|
|
"github.com/dexidp/dex/storage"
|
|
"github.com/dexidp/dex/storage/conformance"
|
|
)
|
|
|
|
func newSQLiteStorage(t *testing.T) storage.Storage {
|
|
logger := slog.New(slog.NewTextHandler(t.Output(), &slog.HandlerOptions{Level: slog.LevelDebug}))
|
|
|
|
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)
|
|
conformance.RunConcurrencyTests(t, newSQLiteStorage)
|
|
}
|