Skip to content

Commit

Permalink
Ignore ce-traceparent headers in event_dispatcher_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-mi committed Mar 7, 2020
1 parent 3eeb9a5 commit 4ae3cfd
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit 4ae3cfd

Please sign in to comment.