Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/cloudevents/sdk-go to v2.5.0 #4216

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.13

require (
github.com/aws/aws-sdk-go v1.31.12 // indirect
github.com/cloudevents/sdk-go/v2 v2.1.0
github.com/cloudevents/sdk-go/v2 v2.5.0
github.com/docker/cli v20.10.8+incompatible // indirect
github.com/docker/docker v20.10.8+incompatible // indirect
github.com/emicklei/go-restful v2.15.0+incompatible // indirect
Expand All @@ -22,7 +22,9 @@ require (
github.com/pkg/errors v0.9.1
github.com/tektoncd/plumbing v0.0.0-20210514044347-f8a9689d5bd5
go.opencensus.io v0.23.0
go.uber.org/multierr v1.7.0 // indirect
go.uber.org/zap v1.19.0
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f // indirect
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
gomodules.xyz/jsonpatch/v2 v2.2.0
k8s.io/api v0.21.4
Expand Down
14 changes: 6 additions & 8 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 7 additions & 10 deletions pkg/reconciler/events/cloudevent/cloud_event_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func TestSendCloudEventWithRetries(t *testing.T) {
},
Status: v1beta1.TaskRunStatus{Status: objectStatus},
},
wantCEvent: "Validation: valid",
wantCEvent: "Context Attributes,",
wantEvent: "",
}, {
name: "test-send-cloud-event-pipelinerun",
Expand All @@ -332,7 +332,7 @@ func TestSendCloudEventWithRetries(t *testing.T) {
},
Status: v1beta1.PipelineRunStatus{Status: objectStatus},
},
wantCEvent: "Validation: valid",
wantCEvent: "Context Attributes,",
wantEvent: "",
}, {
name: "test-send-cloud-event-failed",
Expand All @@ -350,18 +350,15 @@ func TestSendCloudEventWithRetries(t *testing.T) {
ctx := setupFakeContext(t, tc.clientBehaviour, true)
ctx, cancel := context.WithCancel(ctx)
defer cancel()
err := SendCloudEventWithRetries(ctx, tc.object)
if err != nil {
if err := SendCloudEventWithRetries(ctx, tc.object); err != nil {
t.Fatalf("Unexpected error sending cloud events: %v", err)
}
ceClient := Get(ctx).(FakeClient)
err = checkCloudEvents(t, &ceClient, tc.name, tc.wantCEvent)
if err != nil {
if err := checkCloudEvents(t, &ceClient, tc.name, tc.wantCEvent); err != nil {
t.Fatalf(err.Error())
}
recorder := controller.GetEventRecorder(ctx).(*record.FakeRecorder)
err = checkEvents(t, recorder, tc.name, tc.wantEvent)
if err != nil {
if err := checkEvents(t, recorder, tc.name, tc.wantEvent); err != nil {
t.Fatalf(err.Error())
}
})
Expand All @@ -380,14 +377,14 @@ func TestSendCloudEventWithRetriesInvalid(t *testing.T) {
object: &v1beta1.TaskRun{
Status: v1beta1.TaskRunStatus{},
},
wantCEvent: "Validation: valid",
wantCEvent: "Context Attributes,",
wantEvent: "",
}, {
name: "test-send-cloud-event-pipelinerun",
object: &v1beta1.PipelineRun{
Status: v1beta1.PipelineRunStatus{},
},
wantCEvent: "Validation: valid",
wantCEvent: "Context Attributes,",
wantEvent: "",
}}
for _, tc := range tests {
Expand Down
27 changes: 0 additions & 27 deletions third_party/LICENSE

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion third_party/go.uber.org/multierr/LICENSE.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 0 additions & 27 deletions third_party/vendor/golang.org/x/crypto/LICENSE

This file was deleted.

27 changes: 0 additions & 27 deletions third_party/vendor/golang.org/x/net/LICENSE

This file was deleted.

27 changes: 0 additions & 27 deletions third_party/vendor/golang.org/x/text/LICENSE

This file was deleted.

24 changes: 14 additions & 10 deletions vendor/github.com/cloudevents/sdk-go/v2/alias.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/github.com/cloudevents/sdk-go/v2/binding/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/github.com/cloudevents/sdk-go/v2/binding/encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading