Skip to content

Commit 6774b80

Browse files
committed
pre-release fixes
1 parent a4d6c21 commit 6774b80

File tree

4 files changed

+31
-39
lines changed

4 files changed

+31
-39
lines changed

connect/trigger_test.go

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"github.com/cloudsquid/pipedream-go-sdk/client"
8-
"github.com/stretchr/testify/suite"
97
"io"
108
"net/http"
119
"net/http/httptest"
1210
"testing"
11+
12+
"github.com/cloudsquid/pipedream-go-sdk/client"
13+
"github.com/stretchr/testify/suite"
1314
)
1415

1516
type triggerTestSuite struct {
@@ -191,27 +192,29 @@ func (suite *triggerTestSuite) TestGetDeployedTrigger_Success() {
191192
expectedPath := "/project-abc/deployed-triggers/component_id"
192193

193194
expectedResponse := `{
194-
"id": "dc_gzumK2e",
195-
"owner_id": "exu_2LniLm",
196-
"component_id": "sc_r1ixBpL",
197-
"configurable_props": [
198-
{
199-
"name": "googleDrive",
200-
"type": "app",
201-
"app": "google_drive"
202-
}
203-
],
204-
"configured_props": {
205-
"googleDrive": {
206-
"authProvisionId": "apn_V1hMeLM"
207-
}
208-
},
209-
"active": true,
210-
"created_at": 1733512889,
211-
"updated_at": 1733512889,
212-
"name": "Danny Connect - exu_2LniLm",
213-
"name_slug": "danny-connect---exu-2-lni-lm-3"
214-
}`
195+
"data": {
196+
"id": "dc_gzumK2e",
197+
"owner_id": "exu_2LniLm",
198+
"component_id": "sc_r1ixBpL",
199+
"configurable_props": [
200+
{
201+
"name": "googleDrive",
202+
"type": "app",
203+
"app": "google_drive"
204+
}
205+
],
206+
"configured_props": {
207+
"googleDrive": {
208+
"authProvisionId": "apn_V1hMeLM"
209+
}
210+
},
211+
"active": true,
212+
"created_at": 1733512889,
213+
"updated_at": 1733512889,
214+
"name": "Danny Connect - exu_2LniLm",
215+
"name_slug": "danny-connect---exu-2-lni-lm-3"
216+
}
217+
}`
215218

216219
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
217220
switch {

examples/rest/examples.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package main
22

33
import (
44
"context"
5-
"github.com/cloudsquid/pipedream-go-sdk"
65
"log"
6+
7+
"github.com/cloudsquid/pipedream-go-sdk"
78
)
89

910
func main() {
@@ -24,7 +25,7 @@ func main() {
2425
if err != nil {
2526
log.Fatal(err)
2627
}
27-
log.Printf("recieved global registry components: %s", components.Data)
28+
log.Printf("recieved global registry components: %v", components.Data)
2829

2930
events, err := sdk.Rest().GetSourceEvents(
3031
context.Background(),
@@ -36,5 +37,5 @@ func main() {
3637
log.Fatal(err)
3738
}
3839

39-
log.Printf("recieved source events: %s", events.Data)
40+
log.Printf("recieved source events: %v", events.Data)
4041
}

go.mod

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ module github.com/cloudsquid/pipedream-go-sdk
22

33
go 1.24.1
44

5-
require (
6-
github.com/sirupsen/logrus v1.9.3
7-
github.com/stretchr/testify v1.10.0
8-
)
5+
require github.com/stretchr/testify v1.10.0
96

107
require (
118
github.com/davecgh/go-spew v1.1.1 // indirect
129
github.com/pmezard/go-difflib v1.0.0 // indirect
13-
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
1410
gopkg.in/yaml.v3 v3.0.1 // indirect
1511
)

go.sum

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
21
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
32
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
43
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
54
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
6-
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
7-
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
8-
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
9-
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
105
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
116
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
12-
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
13-
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
147
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
158
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
16-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
179
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
1810
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)