feat: asset storage (#1696)

* feat: remove assets

* feat: minio implementation

* fix: remove assets from tests

* feat: minio implementation

* feat: Env vars

* fix: sprintf

* fix: sprintf

* Update internal/eventstore/repository/repository.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* fix: error handling

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2021-05-03 10:15:50 +02:00
committed by GitHub
parent a5c6bf5498
commit 667cc30291
110 changed files with 306 additions and 938 deletions

View File

@@ -119,7 +119,6 @@ func TestCommandSide_AddProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewAddProjectRoleUniqueConstraint("key1", "project1")),
),
),
@@ -164,7 +163,6 @@ func TestCommandSide_AddProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewAddProjectRoleUniqueConstraint("key1", "project1")),
),
),
@@ -334,7 +332,6 @@ func TestCommandSide_BulkAddProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewAddProjectRoleUniqueConstraint("key1", "project1")),
uniqueConstraintsFromEventConstraint(project.NewAddProjectRoleUniqueConstraint("key2", "project1")),
),
@@ -393,7 +390,6 @@ func TestCommandSide_BulkAddProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewAddProjectRoleUniqueConstraint("key1", "project1")),
uniqueConstraintsFromEventConstraint(project.NewAddProjectRoleUniqueConstraint("key2", "project1")),
),
@@ -633,7 +629,6 @@ func TestCommandSide_ChangeProjectRole(t *testing.T) {
newRoleChangedEvent(context.Background(), "project1", "org1", "key1", "keychanged", "groupchanged"),
),
},
nil,
),
),
},
@@ -811,7 +806,6 @@ func TestCommandSide_RemoveProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectRoleUniqueConstraint("key1", "project1")),
),
),
@@ -853,7 +847,6 @@ func TestCommandSide_RemoveProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectRoleUniqueConstraint("key1", "project1")),
),
),
@@ -912,7 +905,6 @@ func TestCommandSide_RemoveProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectRoleUniqueConstraint("key1", "project1")),
),
),
@@ -955,7 +947,6 @@ func TestCommandSide_RemoveProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectRoleUniqueConstraint("key1", "project1")),
),
),
@@ -1012,7 +1003,6 @@ func TestCommandSide_RemoveProjectRole(t *testing.T) {
),
),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectRoleUniqueConstraint("key1", "project1")),
),
),