fix: add authnkeys projection (#2801)

* begin authn keys

* single table for state change

* add key type

* rename migration

* format imports

* fix test
This commit is contained in:
Livio Amstutz
2021-12-08 16:16:48 +01:00
committed by GitHub
parent c9face4ea4
commit 65a6fb638b
6 changed files with 668 additions and 5 deletions

View File

@@ -2,9 +2,10 @@ package projection
import (
"database/sql"
"reflect"
"testing"
"github.com/stretchr/testify/assert"
"github.com/caos/zitadel/internal/errors"
)
@@ -47,9 +48,7 @@ func (e *testExecuter) Validate(t *testing.T) {
if _, ok := execution.expectedArgs[i].(anyArg); ok {
continue
}
if !reflect.DeepEqual(execution.expectedArgs[i], execution.gottenArgs[i]) {
t.Errorf("wrong argument at index %d: got: %v want: %v", i, execution.gottenArgs[i], execution.expectedArgs[i])
}
assert.Equal(t, execution.expectedArgs[i], execution.gottenArgs[i], "wrong argument at index %d", i)
}
}
if execution.gottenStmt != execution.expectedStmt {