fix: rename iam to instance (#3345)

* fix: rename iam command side to instance

* fix: rename iam command side to instance

* fix: rename iam command side to instance

* fix: rename iam command side to instance

* fix: rename orgiampolicy to domain policy

* fix: merge conflicts

* fix: protos

* fix: md files

* implement deprecated org iam policy again

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2022-03-24 17:21:34 +01:00
committed by GitHub
parent 504fe5b761
commit 9d4f296c62
274 changed files with 12073 additions and 11853 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/eventstore/handler"
"github.com/caos/zitadel/internal/eventstore/repository"
"github.com/caos/zitadel/internal/repository/iam"
"github.com/caos/zitadel/internal/repository/instance"
"github.com/caos/zitadel/internal/repository/org"
)
@@ -135,12 +135,12 @@ func TestPasswordComplexityProjection_reduces(t *testing.T) {
},
},
{
name: "iam.reduceAdded",
name: "instance.reduceAdded",
reduce: (&PasswordComplexityProjection{}).reduceAdded,
args: args{
event: getEvent(testEvent(
repository.EventType(iam.PasswordComplexityPolicyAddedEventType),
iam.AggregateType,
repository.EventType(instance.PasswordComplexityPolicyAddedEventType),
instance.AggregateType,
[]byte(`{
"minLength": 10,
"hasLowercase": true,
@@ -148,10 +148,10 @@ func TestPasswordComplexityProjection_reduces(t *testing.T) {
"HasNumber": true,
"HasSymbol": true
}`),
), iam.PasswordComplexityPolicyAddedEventMapper),
), instance.PasswordComplexityPolicyAddedEventMapper),
},
want: wantReduce{
aggregateType: eventstore.AggregateType("iam"),
aggregateType: eventstore.AggregateType("instance"),
sequence: 15,
previousSequence: 10,
projection: PasswordComplexityTable,
@@ -180,12 +180,12 @@ func TestPasswordComplexityProjection_reduces(t *testing.T) {
},
},
{
name: "iam.reduceChanged",
name: "instance.reduceChanged",
reduce: (&PasswordComplexityProjection{}).reduceChanged,
args: args{
event: getEvent(testEvent(
repository.EventType(iam.PasswordComplexityPolicyChangedEventType),
iam.AggregateType,
repository.EventType(instance.PasswordComplexityPolicyChangedEventType),
instance.AggregateType,
[]byte(`{
"minLength": 10,
"hasLowercase": true,
@@ -193,10 +193,10 @@ func TestPasswordComplexityProjection_reduces(t *testing.T) {
"HasNumber": true,
"HasSymbol": true
}`),
), iam.PasswordComplexityPolicyChangedEventMapper),
), instance.PasswordComplexityPolicyChangedEventMapper),
},
want: wantReduce{
aggregateType: eventstore.AggregateType("iam"),
aggregateType: eventstore.AggregateType("instance"),
sequence: 15,
previousSequence: 10,
projection: PasswordComplexityTable,