fix(logintexts): fix several custom text attributes for get and set (#4733)

* fix(logintexts): fix several custom text attributes for get and set

* fix(logintexts): fix externalUserNotFound attribute for json unmarshalling and reduce for customTexts

* fix: correct imports for linting
This commit is contained in:
Stefan Benz
2022-12-01 13:31:46 +01:00
committed by GitHub
parent 9fbd1034c2
commit 9626897834
10 changed files with 88 additions and 32 deletions
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/zitadel/zitadel/internal/api/authz"
"golang.org/x/text/language"
"github.com/zitadel/zitadel/internal/api/authz"
"github.com/zitadel/zitadel/internal/domain"
caos_errs "github.com/zitadel/zitadel/internal/errors"
"github.com/zitadel/zitadel/internal/eventstore"
@@ -1631,7 +1631,7 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
CancelButtonText: "CancelButtonText",
NextButtonText: "NextButtonText",
},
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{
ExternalNotFound: domain.ExternalUserNotFoundScreenText{
Title: "Title",
Description: "Description",
LinkButtonText: "LinkButtonText",
@@ -4329,7 +4329,7 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
ExternalRegistrationUserOverview: domain.ExternalRegistrationUserOverviewScreenText{},
RegistrationOrg: domain.RegistrationOrgScreenText{},
LinkingUsersDone: domain.LinkingUserDoneScreenText{},
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{},
ExternalNotFound: domain.ExternalUserNotFoundScreenText{},
LoginSuccess: domain.SuccessLoginScreenText{},
LogoutDone: domain.LogoutDoneScreenText{},
Footer: domain.FooterText{},
@@ -8543,7 +8543,7 @@ func TestCommandSide_SetCustomIAMLoginText(t *testing.T) {
CancelButtonText: "CancelButtonText",
NextButtonText: "NextButtonText",
},
ExternalNotFoundOption: domain.ExternalUserNotFoundScreenText{
ExternalNotFound: domain.ExternalUserNotFoundScreenText{
Title: "Title",
Description: "Description",
LinkButtonText: "LinkButtonText",