Skip to content

Commit

Permalink
Update Cloudevents SDK to v1.1.2 (knative#2684)
Browse files Browse the repository at this point in the history
* Update Cloudevents SDK to v1.1.2

* Ignore ce-traceparent headers in event_dispatcher_test.go
  • Loading branch information
ian-mi authored and vaikas committed Mar 17, 2020
1 parent 2e91519 commit ccd0292
Show file tree
Hide file tree
Showing 28 changed files with 910 additions and 159 deletions.
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

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

0 comments on commit ccd0292

Please sign in to comment.