3
0

Cleanup, instrumentation

This commit is contained in:
Denis Arh
2020-09-15 07:24:28 +02:00
parent d309e17c14
commit 5eba380f19
25 changed files with 456 additions and 144 deletions

View File

@@ -3,17 +3,17 @@ package service
import (
"context"
"fmt"
"github.com/cortezaproject/corteza-server/pkg/eventbus"
"github.com/cortezaproject/corteza-server/pkg/id"
"github.com/cortezaproject/corteza-server/store/sqlite"
"github.com/cortezaproject/corteza-server/store"
"github.com/cortezaproject/corteza-server/store/sqlite3"
"github.com/cortezaproject/corteza-server/system/types"
"github.com/markbates/goth"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
"golang.org/x/crypto/bcrypt"
"testing"
"time"
"github.com/cortezaproject/corteza-server/pkg/eventbus"
"github.com/cortezaproject/corteza-server/system/types"
)
// Mock auth service with nil for current time, dummy provider validator and mock db
@@ -21,7 +21,7 @@ func makeMockAuthService() *auth {
var (
ctx = context.Background()
mem, err = sqlite.ConnectInMemory(ctx)
mem, err = sqlite3.ConnectInMemory(ctx)
svc = &auth{
providerValidator: func(s string) error {