Skip to content

Commit fccb650

Browse files
authored
fix: remove cluster test (#125)
1 parent cf8a1f3 commit fccb650

File tree

3 files changed

+36
-48
lines changed

3 files changed

+36
-48
lines changed

cluster_test.go

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/stretchr/testify/assert"
1010
ApiV2010 "github.com/twilio/twilio-go/rest/api/v2010"
1111
ChatV2 "github.com/twilio/twilio-go/rest/chat/v2"
12-
EventsV1 "github.com/twilio/twilio-go/rest/events/v1"
1312
)
1413

1514
var from string
@@ -79,39 +78,39 @@ func TestSpecialCharacters(t *testing.T) {
7978
assert.Nil(t, err)
8079
}
8180

82-
func TestListParams(t *testing.T) {
83-
sinkConfig := map[string]interface{}{
84-
"destination": "http://example.org/webhook",
85-
"method": "post",
86-
"batch_events": false,
87-
}
88-
sinkParams := &EventsV1.CreateSinkParams{}
89-
sinkParams.SetSinkConfiguration(sinkConfig)
90-
sinkParams.SetDescription("test sink")
91-
sinkParams.SetSinkType("webhook")
92-
sink, err := testClient.EventsV1.CreateSink(sinkParams)
93-
assert.Nil(t, err)
94-
assert.NotNil(t, sink)
95-
96-
types := []map[string]interface{}{
97-
{
98-
"type": "com.twilio.messaging.message.delivered",
99-
},
100-
{
101-
"type": "com.twilio.messaging.message.sent",
102-
},
103-
}
104-
subscriptionsParams := &EventsV1.CreateSubscriptionParams{}
105-
subscriptionsParams.SetSinkSid(*sink.Sid)
106-
subscriptionsParams.SetTypes(types)
107-
subscriptionsParams.SetDescription("test subscription")
108-
subscription, err := testClient.EventsV1.CreateSubscription(subscriptionsParams)
109-
assert.Nil(t, err)
110-
assert.NotNil(t, subscription)
111-
112-
// Clean up the resources we've created
113-
err = testClient.EventsV1.DeleteSubscription(*subscription.Sid)
114-
assert.Nil(t, err)
115-
err = testClient.EventsV1.DeleteSink(*sink.Sid)
116-
assert.Nil(t, err)
117-
}
81+
//func TestListParams(t *testing.T) {
82+
// sinkConfig := map[string]interface{}{
83+
// "destination": "http://example.org/webhook",
84+
// "method": "post",
85+
// "batch_events": false,
86+
// }
87+
// sinkParams := &EventsV1.CreateSinkParams{}
88+
// sinkParams.SetSinkConfiguration(sinkConfig)
89+
// sinkParams.SetDescription("test sink")
90+
// sinkParams.SetSinkType("webhook")
91+
// sink, err := testClient.EventsV1.CreateSink(sinkParams)
92+
// assert.Nil(t, err)
93+
// assert.NotNil(t, sink)
94+
//
95+
// types := []map[string]interface{}{
96+
// {
97+
// "type": "com.twilio.messaging.message.delivered",
98+
// },
99+
// {
100+
// "type": "com.twilio.messaging.message.sent",
101+
// },
102+
// }
103+
// subscriptionsParams := &EventsV1.CreateSubscriptionParams{}
104+
// subscriptionsParams.SetSinkSid(*sink.Sid)
105+
// subscriptionsParams.SetTypes(types)
106+
// subscriptionsParams.SetDescription("test subscription")
107+
// subscription, err := testClient.EventsV1.CreateSubscription(subscriptionsParams)
108+
// assert.Nil(t, err)
109+
// assert.NotNil(t, subscription)
110+
//
111+
// // Clean up the resources we've created
112+
// err = testClient.EventsV1.DeleteSubscription(*subscription.Sid)
113+
// assert.Nil(t, err)
114+
// err = testClient.EventsV1.DeleteSink(*sink.Sid)
115+
// assert.Nil(t, err)
116+
//}

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ require (
1010
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
1111
github.com/pkg/errors v0.9.1
1212
github.com/stretchr/testify v1.7.0
13-
golang.org/x/tools v0.1.7 // indirect
1413
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
1514
)

go.sum

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,27 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
2020
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
2121
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
2222
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
23-
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
2423
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
2524
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
26-
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
2725
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
2826
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
2927
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
3028
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
31-
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
3229
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
3330
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
3431
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
3532
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3633
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3734
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
38-
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3935
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
40-
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e h1:WUoyKPm6nCo1BnNUvPGnFG3T5DUVem42yDJZZ4CNxMA=
41-
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4236
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
4337
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
4438
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
45-
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
4639
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
4740
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
4841
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
49-
golang.org/x/tools v0.1.7 h1:6j8CgantCy3yc8JGBqkDLMKWqZ0RDU2g1HVgacojGWQ=
50-
golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
5142
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
5243
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
53-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
5444
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
5545
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
5646
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=

0 commit comments

Comments
 (0)