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

@@ -179,7 +179,6 @@ func TestCommandSide_AddProjectGrant(t *testing.T) {
[]string{"key1"},
)),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewAddProjectGrantUniqueConstraint("grantedorg1", "project1")),
),
),
@@ -512,7 +511,6 @@ func TestCommandSide_ChangeProjectGrant(t *testing.T) {
[]string{"key1", "key2"},
)),
},
nil,
),
),
},
@@ -593,7 +591,6 @@ func TestCommandSide_ChangeProjectGrant(t *testing.T) {
[]string{"key1"},
)),
},
nil,
),
),
},
@@ -688,7 +685,6 @@ func TestCommandSide_ChangeProjectGrant(t *testing.T) {
[]string{"key1"},
)),
},
nil,
),
),
},
@@ -899,7 +895,6 @@ func TestCommandSide_DeactivateProjectGrant(t *testing.T) {
"projectgrant1",
)),
},
nil,
),
),
},
@@ -1096,7 +1091,6 @@ func TestCommandSide_ReactivateProjectGrant(t *testing.T) {
"projectgrant1",
)),
},
nil,
),
),
},
@@ -1258,7 +1252,6 @@ func TestCommandSide_RemoveProjectGrant(t *testing.T) {
"grantedorg1",
)),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectGrantUniqueConstraint("grantedorg1", "project1")),
),
),
@@ -1305,7 +1298,6 @@ func TestCommandSide_RemoveProjectGrant(t *testing.T) {
"grantedorg1",
)),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectGrantUniqueConstraint("grantedorg1", "project1")),
),
),
@@ -1365,7 +1357,6 @@ func TestCommandSide_RemoveProjectGrant(t *testing.T) {
"projectgrant1",
)),
},
nil,
uniqueConstraintsFromEventConstraint(project.NewRemoveProjectGrantUniqueConstraint("grantedorg1", "project1")),
uniqueConstraintsFromEventConstraint(usergrant.NewRemoveUserGrantUniqueConstraint("org1", "user1", "project1", "projectgrant1")),
),