mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:47:32 +00:00
feat: add assets to eventstore and event (#1674)
* fix: add assets to eventstore and event * fix: project member, grant member, app changed tests * fix: asset migrations * feat: add asset tests * feat: add asset tests * Update internal/eventstore/repository/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * feat: add asset tests Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -108,6 +108,7 @@ func TestCommandSide_AddOrgDomain(t *testing.T) {
|
||||
"domain.ch",
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -322,6 +323,7 @@ func TestCommandSide_GenerateOrgDomainValidation(t *testing.T) {
|
||||
},
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
secretGenerator: GetMockSecretGenerator(t),
|
||||
@@ -374,6 +376,7 @@ func TestCommandSide_GenerateOrgDomainValidation(t *testing.T) {
|
||||
},
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
secretGenerator: GetMockSecretGenerator(t),
|
||||
@@ -618,6 +621,7 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
|
||||
"domain.ch",
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
alg: crypto.CreateMockEncryptionAlg(gomock.NewController(t)),
|
||||
@@ -676,6 +680,7 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
|
||||
"domain.ch",
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(org.NewAddOrgDomainUniqueConstraint("domain.ch")),
|
||||
),
|
||||
),
|
||||
@@ -738,6 +743,7 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
|
||||
"domain.ch",
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(org.NewAddOrgDomainUniqueConstraint("domain.ch")),
|
||||
),
|
||||
),
|
||||
@@ -827,6 +833,7 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
|
||||
false,
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(org.NewAddOrgDomainUniqueConstraint("domain.ch")),
|
||||
uniqueConstraintsFromEventConstraint(user.NewRemoveUsernameUniqueConstraint("username@domain.ch", "org2", false)),
|
||||
uniqueConstraintsFromEventConstraint(user.NewAddUsernameUniqueConstraint("tempid@temporary.zitadel.ch", "org2", false)),
|
||||
@@ -1027,6 +1034,7 @@ func TestCommandSide_SetPrimaryDomain(t *testing.T) {
|
||||
"domain.ch",
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -1220,6 +1228,7 @@ func TestCommandSide_RemoveOrgDomain(t *testing.T) {
|
||||
"domain.ch", false,
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -1270,6 +1279,7 @@ func TestCommandSide_RemoveOrgDomain(t *testing.T) {
|
||||
"domain.ch", true,
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(org.NewRemoveOrgDomainUniqueConstraint("domain.ch")),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user