storage: hook up conformance tests for SQL

This commit is contained in:
Eric Chiang
2016-09-17 19:01:15 -06:00
committed by Eric Chiang
parent e2bf8ceb63
commit 63f56b4269
4 changed files with 112 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
"testing"
"github.com/coreos/dex/storage"
"github.com/coreos/dex/storage/conformance"
)
@@ -73,5 +74,8 @@ func TestURLFor(t *testing.T) {
func TestStorage(t *testing.T) {
client := loadClient(t)
conformance.RunTestSuite(t, client)
conformance.RunTestSuite(t, func() storage.Storage {
// TODO(erichiang): Tear down namespaces between each iteration.
return client
})
}