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

@@ -108,7 +108,6 @@ func TestCommandSide_AddOrgDomain(t *testing.T) {
"domain.ch",
)),
},
nil,
),
),
},
@@ -323,7 +322,6 @@ func TestCommandSide_GenerateOrgDomainValidation(t *testing.T) {
},
)),
},
nil,
),
),
secretGenerator: GetMockSecretGenerator(t),
@@ -376,7 +374,6 @@ func TestCommandSide_GenerateOrgDomainValidation(t *testing.T) {
},
)),
},
nil,
),
),
secretGenerator: GetMockSecretGenerator(t),
@@ -621,7 +618,6 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
"domain.ch",
)),
},
nil,
),
),
alg: crypto.CreateMockEncryptionAlg(gomock.NewController(t)),
@@ -680,7 +676,6 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
"domain.ch",
)),
},
nil,
uniqueConstraintsFromEventConstraint(org.NewAddOrgDomainUniqueConstraint("domain.ch")),
),
),
@@ -743,7 +738,6 @@ func TestCommandSide_ValidateOrgDomain(t *testing.T) {
"domain.ch",
)),
},
nil,
uniqueConstraintsFromEventConstraint(org.NewAddOrgDomainUniqueConstraint("domain.ch")),
),
),
@@ -833,7 +827,6 @@ 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)),
@@ -1034,7 +1027,6 @@ func TestCommandSide_SetPrimaryDomain(t *testing.T) {
"domain.ch",
)),
},
nil,
),
),
},
@@ -1228,7 +1220,6 @@ func TestCommandSide_RemoveOrgDomain(t *testing.T) {
"domain.ch", false,
)),
},
nil,
),
),
},
@@ -1279,7 +1270,6 @@ func TestCommandSide_RemoveOrgDomain(t *testing.T) {
"domain.ch", true,
)),
},
nil,
uniqueConstraintsFromEventConstraint(org.NewRemoveOrgDomainUniqueConstraint("domain.ch")),
),
),