Skip to content

Eventing cronjob doesn't reflects the current output #1005

@khrm

Description

@khrm

The output given at https://github.com/knative/docs/tree/master/eventing/samples/cronjob-source#verify is not correct. Knative-eventing has adopted cloudevents.io due to which it expects different output.

Given Behavior

{
"ID": "1543616460000180552-203",
"EventTime": "2018-11-30T22:21:00.000186721Z",
"Body": "{"message": "Hello world!"}"
}

Actual Behavior

Host: message-dumper.default.svc.cluster.local
Transfer-Encoding: chunked
Accept-Encoding: gzip
Ce-Cloudeventsversion: 0.1
Ce-Eventid: 9790bf44-914a-4e66-af59-b43c06ccb73b
Ce-Eventtime: 2019-03-14T14:28:00.005163309Z
Ce-Eventtype: dev.knative.cronjob.event
Ce-Source: CronJob
...

{"message":"Hello world!"}

Steps to Reproduce the Problem

  1. Follow the https://github.com/knative/docs/blob/master/eventing/samples/cronjob-source/README.md

Install information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions