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

Update Cloudevents SDK to v1.1.2 #2684

Merged
merged 2 commits into from
Mar 17, 2020
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
20 changes: 17 additions & 3 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ required = [

[[constraint]]
name = "github.com/cloudevents/sdk-go"
revision = "427e8cf75237fdc7d4bb6c496398d7288efb8921"
version = "1.1.2"

# needed because pkg upgraded
[[override]]
Expand Down
14 changes: 14 additions & 0 deletions pkg/channel/event_dispatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var (
// CloudEvents headers, they will have random values, so don't bother checking them.
"ce-id",
"ce-time",
"ce-traceparent",
)
)

Expand Down Expand Up @@ -102,6 +103,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down Expand Up @@ -133,6 +135,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down Expand Up @@ -169,6 +172,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"reply"`,
},
Expand Down Expand Up @@ -200,6 +204,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"reply"`,
},
Expand Down Expand Up @@ -237,6 +242,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down Expand Up @@ -274,6 +280,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down Expand Up @@ -316,6 +323,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down Expand Up @@ -347,6 +355,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: "destination-response",
},
Expand Down Expand Up @@ -379,6 +388,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand All @@ -396,6 +406,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down Expand Up @@ -448,6 +459,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand All @@ -464,6 +476,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: "destination-response",
},
Expand All @@ -480,6 +493,7 @@ func TestDispatchMessage(t *testing.T) {
"ce-source": {testCeSource},
"ce-type": {testCeType},
"ce-specversion": {cloudevents.VersionV1},
"ce-traceparent": {"ignored-value-header"},
},
Body: `"destination"`,
},
Expand Down
27 changes: 27 additions & 0 deletions third_party/VENDOR-LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4058,6 +4058,33 @@ SOFTWARE.



===========================================================
Import: knative.dev/eventing/vendor/github.com/lightstep/tracecontext.go

The MIT License (MIT)

Copyright (c) 2016
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing whitespace:

Suggested change
Copyright (c) 2016
Copyright (c) 2016


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



===========================================================
Import: knative.dev/eventing/vendor/github.com/mailru/easyjson

Expand Down
12 changes: 7 additions & 5 deletions vendor/github.com/cloudevents/sdk-go/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.

Loading