fix: v2 human command (#3435)

* add/register human command done

* validations

* crypto

* move clientid

* keys

* fix: clientID

* remove v2 package

* tests

* tests running

* revert old code

* instance domain from ctx

* chore: rename zitadel app ids

* comments

* fix: test
This commit is contained in:
Silvan
2022-04-12 16:20:17 +02:00
committed by GitHub
parent 4a0d61d75a
commit cea2567e22
97 changed files with 3524 additions and 2832 deletions

View File

@@ -380,7 +380,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "instanceID", Valid: true},
InstanceID: "instanceID",
Type: "test.event",
Version: "v1",
},
@@ -418,7 +418,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "instanceID", Valid: true},
InstanceID: "instanceID",
Type: "test.event",
Version: "v1",
},
@@ -429,7 +429,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "instanceID", Valid: true},
InstanceID: "instanceID",
Type: "test.event",
Version: "v1",
},
@@ -585,7 +585,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "", Valid: false},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -630,7 +630,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -641,7 +641,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -654,7 +654,7 @@ func TestEventstore_aggregatesToEvents(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -772,7 +772,7 @@ func TestEventstore_Push(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -816,7 +816,7 @@ func TestEventstore_Push(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -827,7 +827,7 @@ func TestEventstore_Push(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -882,7 +882,7 @@ func TestEventstore_Push(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -893,7 +893,7 @@ func TestEventstore_Push(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},
@@ -906,7 +906,7 @@ func TestEventstore_Push(t *testing.T) {
EditorService: "editorService",
EditorUser: "editorUser",
ResourceOwner: sql.NullString{String: "caos", Valid: true},
InstanceID: sql.NullString{String: "zitadel"},
InstanceID: "zitadel",
Type: "test.event",
Version: "v1",
},