mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-29 07:28:52 +00:00
chore: rename docs links (#3668)
This commit is contained in:
@@ -2808,7 +2808,7 @@ func TestAddHumanCommand(t *testing.T) {
|
||||
Username: "username",
|
||||
PreferredLanguage: language.English,
|
||||
Email: Email{
|
||||
Address: "[email protected]h",
|
||||
Address: "[email protected]om",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -2824,7 +2824,7 @@ func TestAddHumanCommand(t *testing.T) {
|
||||
Username: "username",
|
||||
PreferredLanguage: language.English,
|
||||
FirstName: "hurst",
|
||||
Email: Email{Address: "[email protected]h"},
|
||||
Email: Email{Address: "[email protected]om"},
|
||||
},
|
||||
},
|
||||
want: Want{
|
||||
@@ -2836,7 +2836,7 @@ func TestAddHumanCommand(t *testing.T) {
|
||||
args: args{
|
||||
a: agg,
|
||||
human: &AddHuman{
|
||||
Email: Email{Address: "[email protected]h"},
|
||||
Email: Email{Address: "[email protected]om"},
|
||||
PreferredLanguage: language.English,
|
||||
FirstName: "gigi",
|
||||
LastName: "giraffe",
|
||||
@@ -2880,7 +2880,7 @@ func TestAddHumanCommand(t *testing.T) {
|
||||
args: args{
|
||||
a: agg,
|
||||
human: &AddHuman{
|
||||
Email: Email{Address: "[email protected]h", Verified: true},
|
||||
Email: Email{Address: "[email protected]om", Verified: true},
|
||||
PreferredLanguage: language.English,
|
||||
FirstName: "gigi",
|
||||
LastName: "giraffe",
|
||||
@@ -2930,7 +2930,7 @@ func TestAddHumanCommand(t *testing.T) {
|
||||
"gigi giraffe",
|
||||
language.English,
|
||||
0,
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
true,
|
||||
)
|
||||
event.AddPasswordData(&crypto.CryptoValue{
|
||||
|
||||
@@ -1630,7 +1630,7 @@ func TestExistsUser(t *testing.T) {
|
||||
"displayName",
|
||||
language.German,
|
||||
domain.GenderFemale,
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
true,
|
||||
),
|
||||
}, nil
|
||||
@@ -1656,7 +1656,7 @@ func TestExistsUser(t *testing.T) {
|
||||
"displayName",
|
||||
language.German,
|
||||
domain.GenderFemale,
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
true,
|
||||
),
|
||||
}, nil
|
||||
|
||||
@@ -36,7 +36,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
"displayName": "display-name",
|
||||
"preferredLanguage": "ch-DE",
|
||||
"gender": 1,
|
||||
"email": "[email protected]h",
|
||||
"email": "[email protected]om",
|
||||
"phone": "+41 00 000 00 00"
|
||||
}`),
|
||||
), user.HumanAddedEventMapper),
|
||||
@@ -73,7 +73,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
&sql.NullString{String: "display-name", Valid: true},
|
||||
&sql.NullString{String: "ch-DE", Valid: true},
|
||||
&sql.NullInt16{Int16: int16(domain.GenderFemale), Valid: true},
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
&sql.NullString{String: "+41 00 000 00 00", Valid: true},
|
||||
},
|
||||
},
|
||||
@@ -95,7 +95,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
"displayName": "display-name",
|
||||
"preferredLanguage": "ch-DE",
|
||||
"gender": 1,
|
||||
"email": "[email protected]h",
|
||||
"email": "[email protected]om",
|
||||
"phone": "+41 00 000 00 00"
|
||||
}`),
|
||||
), user.HumanAddedEventMapper),
|
||||
@@ -132,7 +132,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
&sql.NullString{String: "display-name", Valid: true},
|
||||
&sql.NullString{String: "ch-DE", Valid: true},
|
||||
&sql.NullInt16{Int16: int16(domain.GenderFemale), Valid: true},
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
&sql.NullString{String: "+41 00 000 00 00", Valid: true},
|
||||
},
|
||||
},
|
||||
@@ -150,7 +150,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
"username": "user-name",
|
||||
"firstName": "first-name",
|
||||
"lastName": "last-name",
|
||||
"email": "[email protected]h"
|
||||
"email": "[email protected]om"
|
||||
}`),
|
||||
), user.HumanAddedEventMapper),
|
||||
},
|
||||
@@ -186,7 +186,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
&sql.NullString{},
|
||||
&sql.NullString{String: "und", Valid: false},
|
||||
&sql.NullInt16{},
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
&sql.NullString{},
|
||||
},
|
||||
},
|
||||
@@ -208,7 +208,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
"displayName": "display-name",
|
||||
"preferredLanguage": "ch-DE",
|
||||
"gender": 1,
|
||||
"email": "[email protected]h",
|
||||
"email": "[email protected]om",
|
||||
"phone": "+41 00 000 00 00"
|
||||
}`),
|
||||
), user.HumanRegisteredEventMapper),
|
||||
@@ -245,7 +245,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
&sql.NullString{String: "display-name", Valid: true},
|
||||
&sql.NullString{String: "ch-DE", Valid: true},
|
||||
&sql.NullInt16{Int16: int16(domain.GenderFemale), Valid: true},
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
&sql.NullString{String: "+41 00 000 00 00", Valid: true},
|
||||
},
|
||||
},
|
||||
@@ -267,7 +267,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
"displayName": "display-name",
|
||||
"preferredLanguage": "ch-DE",
|
||||
"gender": 1,
|
||||
"email": "[email protected]h",
|
||||
"email": "[email protected]om",
|
||||
"phone": "+41 00 000 00 00"
|
||||
}`),
|
||||
), user.HumanRegisteredEventMapper),
|
||||
@@ -304,7 +304,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
&sql.NullString{String: "display-name", Valid: true},
|
||||
&sql.NullString{String: "ch-DE", Valid: true},
|
||||
&sql.NullInt16{Int16: int16(domain.GenderFemale), Valid: true},
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
&sql.NullString{String: "+41 00 000 00 00", Valid: true},
|
||||
},
|
||||
},
|
||||
@@ -322,7 +322,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
"username": "user-name",
|
||||
"firstName": "first-name",
|
||||
"lastName": "last-name",
|
||||
"email": "[email protected]h"
|
||||
"email": "[email protected]om"
|
||||
}`),
|
||||
), user.HumanRegisteredEventMapper),
|
||||
},
|
||||
@@ -358,7 +358,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
&sql.NullString{},
|
||||
&sql.NullString{String: "und", Valid: false},
|
||||
&sql.NullInt16{},
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
&sql.NullString{},
|
||||
},
|
||||
},
|
||||
@@ -984,7 +984,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
repository.EventType(user.HumanEmailChangedType),
|
||||
user.AggregateType,
|
||||
[]byte(`{
|
||||
"email": "[email protected]h"
|
||||
"email": "[email protected]om"
|
||||
}`),
|
||||
), user.HumanEmailChangedEventMapper),
|
||||
},
|
||||
@@ -1007,7 +1007,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
{
|
||||
expectedStmt: "UPDATE projections.users_humans SET (email, is_email_verified) = ($1, $2) WHERE (user_id = $3)",
|
||||
expectedArgs: []interface{}{
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
false,
|
||||
"agg-id",
|
||||
},
|
||||
@@ -1023,7 +1023,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
repository.EventType(user.UserV1EmailChangedType),
|
||||
user.AggregateType,
|
||||
[]byte(`{
|
||||
"email": "[email protected]h"
|
||||
"email": "[email protected]om"
|
||||
}`),
|
||||
), user.HumanEmailChangedEventMapper),
|
||||
},
|
||||
@@ -1046,7 +1046,7 @@ func TestUserProjection_reduces(t *testing.T) {
|
||||
{
|
||||
expectedStmt: "UPDATE projections.users_humans SET (email, is_email_verified) = ($1, $2) WHERE (user_id = $3)",
|
||||
expectedArgs: []interface{}{
|
||||
"[email protected]h",
|
||||
"[email protected]om",
|
||||
false,
|
||||
"agg-id",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user