mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +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:
@@ -353,6 +353,7 @@ func TestCommandSide_AddUserGrant(t *testing.T) {
|
||||
[]string{"rolekey1"},
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewAddUserGrantUniqueConstraint("org1", "user1", "project1", "")),
|
||||
),
|
||||
),
|
||||
@@ -433,6 +434,7 @@ func TestCommandSide_AddUserGrant(t *testing.T) {
|
||||
[]string{"rolekey1"},
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewAddUserGrantUniqueConstraint("org1", "user1", "project1", "projectgrant1")),
|
||||
),
|
||||
),
|
||||
@@ -971,6 +973,7 @@ func TestCommandSide_ChangeUserGrant(t *testing.T) {
|
||||
[]string{"rolekey1", "rolekey2"},
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -1066,6 +1069,7 @@ func TestCommandSide_ChangeUserGrant(t *testing.T) {
|
||||
[]string{"rolekey1", "rolekey2"},
|
||||
)),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -1290,6 +1294,7 @@ func TestCommandSide_DeactivateUserGrant(t *testing.T) {
|
||||
),
|
||||
),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -1502,6 +1507,7 @@ func TestCommandSide_ReactivateUserGrant(t *testing.T) {
|
||||
),
|
||||
),
|
||||
},
|
||||
nil,
|
||||
),
|
||||
),
|
||||
},
|
||||
@@ -1673,6 +1679,7 @@ func TestCommandSide_RemoveUserGrant(t *testing.T) {
|
||||
),
|
||||
),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user1", "project1", "")),
|
||||
),
|
||||
),
|
||||
@@ -1713,6 +1720,7 @@ func TestCommandSide_RemoveUserGrant(t *testing.T) {
|
||||
),
|
||||
),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user1", "project1", "projectgrant1")),
|
||||
),
|
||||
),
|
||||
@@ -1898,6 +1906,7 @@ func TestCommandSide_BulkRemoveUserGrant(t *testing.T) {
|
||||
),
|
||||
),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user1", "project1", "")),
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user2", "project2", "")),
|
||||
),
|
||||
@@ -1952,6 +1961,7 @@ func TestCommandSide_BulkRemoveUserGrant(t *testing.T) {
|
||||
),
|
||||
),
|
||||
},
|
||||
nil,
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user1", "project1", "projectgrant1")),
|
||||
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user2", "project2", "projectgrant2")),
|
||||
),
|
||||
|
Reference in New Issue
Block a user