@@ -80,16 +80,16 @@ func buildSyncer(t *testing.T, srcHandler, tgtHandler http.HandlerFunc) (*sync.S
8080
8181func TestApplicationDraftFrom_PreservesAllFields (t * testing.T ) {
8282 app := sync.Application {
83- ID : "src-id" ,
84- Version : 3 ,
85- Key : "my-app" ,
86- Name : "My App" ,
87- Mode : "CompleteFlow" ,
88- Status : "Active" ,
89- Description : sync.LocalizedString {"en" : "Desc" },
90- Logo : & sync.ApplicationLogo {URL : "https://logo.example.com/img.svg" },
91- Countries : []string {"DE" , "FR" },
92- AllowedOrigins : & sync.AllowedOrigins {AllowAll : false , Origins : []string {"https://demo.com" }},
83+ ID : "src-id" ,
84+ Version : 3 ,
85+ Key : "my-app" ,
86+ Name : "My App" ,
87+ Mode : "CompleteFlow" ,
88+ Status : "Active" ,
89+ Description : sync.LocalizedString {"en" : "Desc" },
90+ Logo : & sync.ApplicationLogo {URL : "https://logo.example.com/img.svg" },
91+ Countries : []string {"DE" , "FR" },
92+ AllowedOrigins : & sync.AllowedOrigins {AllowAll : false , Origins : []string {"https://demo.com" }},
9393 PaymentsConfiguration : & sync.PaymentsConfiguration {PaymentReturnURL : "https://demo.com/return" , ActivePaymentComponentType : "Component" },
9494 DiscountsConfiguration : & sync.DiscountsConfiguration {AllowDiscounts : true },
9595 Agreements : []sync.ApplicationAgreement {
@@ -140,15 +140,15 @@ func TestBuildApplicationUpdateActions_NameChange(t *testing.T) {
140140
141141func TestBuildApplicationUpdateActions_MultipleChanges (t * testing.T ) {
142142 src := & sync.Application {
143- Key : "k" ,
144- Name : "New Name" ,
145- Status : "Active" ,
143+ Key : "k" ,
144+ Name : "New Name" ,
145+ Status : "Active" ,
146146 Countries : []string {"DE" },
147147 }
148148 tgt := & sync.Application {
149- Key : "k" ,
150- Name : "Old Name" ,
151- Status : "Inactive" ,
149+ Key : "k" ,
150+ Name : "Old Name" ,
151+ Status : "Inactive" ,
152152 Countries : []string {"FR" },
153153 }
154154 actions := sync .BuildApplicationUpdateActions (src , tgt )
@@ -300,10 +300,10 @@ func TestDeriveKey_Basic(t *testing.T) {
300300
301301func TestPaymentIntegrationDraftFrom_TranslatesAppID (t * testing.T ) {
302302 src := sync.PaymentIntegration {
303- Key : "pi-key" ,
304- Type : "card" ,
305- Name : "Credit Card" ,
306- Application : sync.Reference {ID : "src-app-id" , TypeID : "application" },
303+ Key : "pi-key" ,
304+ Type : "card" ,
305+ Name : "Credit Card" ,
306+ Application : sync.Reference {ID : "src-app-id" , TypeID : "application" },
307307 ConnectorDeployment : & sync.Reference {ID : "src-dep-id" , TypeID : "deployment" },
308308 }
309309 mapping := map [string ]string {"src-dep-id" : "tgt-dep-id" }
@@ -323,8 +323,8 @@ func TestPaymentIntegrationDraftFrom_TranslatesAppID(t *testing.T) {
323323
324324func TestPaymentIntegrationDraftFrom_NoKeyDerives (t * testing.T ) {
325325 src := sync.PaymentIntegration {
326- Type : "card" ,
327- Name : "Credit Card via Adyen" ,
326+ Type : "card" ,
327+ Name : "Credit Card via Adyen" ,
328328 Application : sync.Reference {ID : "src-app-id" , TypeID : "application" },
329329 }
330330 draft := sync .PaymentIntegrationDraftFrom (src , "tgt-app-id" , nil )
@@ -393,12 +393,12 @@ func makeApp(id, key, version int) sync.Application {
393393// makePI creates a minimal PaymentIntegration for testing.
394394func makePI (id int , appID string ) sync.PaymentIntegration {
395395 return sync.PaymentIntegration {
396- ID : fmt .Sprintf ("pi-%d" , id ),
397- Version : 1 ,
398- Key : fmt .Sprintf ("pi-key-%d" , id ),
399- Name : fmt .Sprintf ("PI %d" , id ),
400- Type : "card" ,
401- Status : "Active" ,
396+ ID : fmt .Sprintf ("pi-%d" , id ),
397+ Version : 1 ,
398+ Key : fmt .Sprintf ("pi-key-%d" , id ),
399+ Name : fmt .Sprintf ("PI %d" , id ),
400+ Type : "card" ,
401+ Status : "Active" ,
402402 Application : sync.Reference {ID : appID , TypeID : "application" },
403403 }
404404}
0 commit comments