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 <[email protected]>

* fix: error handling

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2021-05-03 10:15:50 +02:00
committed by GitHub
co-authored by Livio Amstutz
parent a5c6bf5498
commit 667cc30291
110 changed files with 306 additions and 938 deletions
-10
View File
@@ -83,7 +83,6 @@ func TestCommandSide_AddDefaultLoginPolicy(t *testing.T) {
),
),
},
nil,
),
),
},
@@ -224,7 +223,6 @@ func TestCommandSide_ChangeDefaultLoginPolicy(t *testing.T) {
newDefaultLoginPolicyChangedEvent(context.Background(), false, false, false, false, domain.PasswordlessTypeNotAllowed),
),
},
nil,
),
),
},
@@ -394,7 +392,6 @@ func TestCommandSide_AddIDPProviderDefaultLoginPolicy(t *testing.T) {
"config1"),
),
},
nil,
),
),
},
@@ -558,7 +555,6 @@ func TestCommandSide_RemoveIDPProviderDefaultLoginPolicy(t *testing.T) {
"config1"),
),
},
nil,
),
),
},
@@ -605,7 +601,6 @@ func TestCommandSide_RemoveIDPProviderDefaultLoginPolicy(t *testing.T) {
"config1"),
),
},
nil,
),
),
},
@@ -671,7 +666,6 @@ func TestCommandSide_RemoveIDPProviderDefaultLoginPolicy(t *testing.T) {
&user.NewAggregate("user1", "org1").Aggregate,
"config1", "externaluser1")),
},
nil,
uniqueConstraintsFromEventConstraint(user.NewRemoveExternalIDPUniqueConstraint("config1", "externaluser1")),
),
),
@@ -787,7 +781,6 @@ func TestCommandSide_AddSecondFactorDefaultLoginPolicy(t *testing.T) {
domain.SecondFactorTypeOTP),
),
},
nil,
),
),
},
@@ -920,7 +913,6 @@ func TestCommandSide_RemoveSecondFactorDefaultLoginPolicy(t *testing.T) {
domain.SecondFactorTypeOTP),
),
},
nil,
),
),
},
@@ -1024,7 +1016,6 @@ func TestCommandSide_AddMultiFactorDefaultLoginPolicy(t *testing.T) {
domain.MultiFactorTypeU2FWithPIN),
),
},
nil,
),
),
},
@@ -1157,7 +1148,6 @@ func TestCommandSide_RemoveMultiFactorDefaultLoginPolicy(t *testing.T) {
domain.MultiFactorTypeU2FWithPIN),
),
},
nil,
),
),
},