@@ -77,8 +77,20 @@ var _ = Context("Payments API Connectors", Serial, func() {
7777 getRes , err := app .GetValue ().SDK ().Payments .V3 .GetConnectorConfig (ctx , connectorID )
7878 Expect (err ).To (BeNil ())
7979 Expect (getRes .V3GetConnectorConfigResponse ).NotTo (BeNil ())
80- Expect (getRes .V3GetConnectorConfigResponse .Data .V3DummypayConfig ).To (Equal (connectorConf ))
80+ Expect (getRes .V3GetConnectorConfigResponse .Data .V3DummypayConfig .Name ).To (Equal (connectorConf .Name ))
81+ Expect (getRes .V3GetConnectorConfigResponse .Data .V3DummypayConfig .Provider ).To (Equal (connectorConf .Provider ))
82+ Expect (getRes .V3GetConnectorConfigResponse .Data .V3DummypayConfig .Directory ).To (Equal (connectorConf .Directory ))
83+ Expect (getRes .V3GetConnectorConfigResponse .Data .V3DummypayConfig .PageSize ).To (Equal (connectorConf .PageSize ))
8184 Expect (getRes .V3GetConnectorConfigResponse .Data .Type ).To (Equal (components .V3ConnectorConfigTypeDummypay ))
85+
86+ getResPollingPeriod , err := time .ParseDuration (
87+ * getRes .V3GetConnectorConfigResponse .Data .V3DummypayConfig .PollingPeriod ,
88+ )
89+ Expect (err ).To (BeNil ())
90+ configPollingPeriod , err := time .ParseDuration (* connectorConf .PollingPeriod )
91+ Expect (err ).To (BeNil ())
92+
93+ Expect (getResPollingPeriod ).To (Equal (configPollingPeriod ))
8294 })
8395
8496 It ("can install a connector with v2 API" , func () {
@@ -91,7 +103,7 @@ var _ = Context("Payments API Connectors", Serial, func() {
91103 connectorConf := components.ConnectorConfig {
92104 DummyPayConfig : & components.DummyPayConfig {
93105 Name : fmt .Sprintf ("connector-%s" , id .String ()),
94- FilePollingPeriod : pointer .For ("30s " ),
106+ FilePollingPeriod : pointer .For ("30m " ),
95107 Provider : pointer .For ("Dummypay" ),
96108 Directory : dir ,
97109 },
@@ -163,7 +175,7 @@ var _ = Context("Payments API Connectors", Serial, func() {
163175 config := components.ConnectorConfig {
164176 DummyPayConfig : & components.DummyPayConfig {
165177 Name : "some name" ,
166- FilePollingPeriod : pointer .For ("2m " ),
178+ FilePollingPeriod : pointer .For ("30m " ),
167179 Provider : pointer .For ("Dummypay" ),
168180 Directory : dir ,
169181 },
@@ -186,7 +198,7 @@ var _ = Context("Payments API Connectors", Serial, func() {
186198 Expect (err ).To (BeNil ())
187199 blockTillWorkflowComplete (ctx , connectorID , "run-tasks-" )
188200
189- config .PollingPeriod = pointer .For ("2m0s " )
201+ config .PollingPeriod = pointer .For ("30m0s " )
190202 _ , err = app .GetValue ().SDK ().Payments .V3 .V3UpdateConnectorConfig (ctx , connectorID , & components.V3UpdateConnectorRequest {
191203 V3DummypayConfig : config ,
192204 })
@@ -569,7 +581,7 @@ func newV3ConnectorConfigFn() func(id uuid.UUID) *components.V3DummypayConfig {
569581 LinkFlowError : pointer .For (false ),
570582 Name : fmt .Sprintf ("connector-%s" , id .String ()),
571583 PageSize : pointer .For (int64 (30 )),
572- PollingPeriod : pointer .For ("30s " ),
584+ PollingPeriod : pointer .For ("30m " ),
573585 Provider : pointer .For ("Dummypay" ),
574586 UpdateLinkFlowError : pointer .For (false ),
575587 }
@@ -586,7 +598,7 @@ func newV2ConnectorConfigFn() func(id uuid.UUID) *components.DummyPayConfig {
586598
587599 return & components.DummyPayConfig {
588600 Name : fmt .Sprintf ("connector-%s" , id .String ()),
589- FilePollingPeriod : pointer .For ("30s " ),
601+ FilePollingPeriod : pointer .For ("30m " ),
590602 Provider : pointer .For ("Dummypay" ),
591603 Directory : dir ,
592604 }
0 commit comments