-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor(cloudevents-server): add kafka topic to store event #165
Conversation
The pull request seems to refactor the Key changes include:
Potential problems:
Suggestions:
|
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
1caa168
to
223608a
Compare
This pull request seems to be related to the addition of a Kafka topic to the cloudevents-server application. The code changes are mostly related to the configuration and handling of Kafka events. Key changes:
Potential problems:
Suggestions:
|
manual test Deno script: import { describe, it, beforeAll } from "jsr:@std/testing/bdd";
import { httpTransport, emitterFor, CloudEvent, EmitterFunction } from "npm:cloudevents@8.0.2";
function loadCloudEvent(filename: string) {
const content = Deno.readTextFileSync(filename);
return new CloudEvent(JSON.parse(content))
}
describe("Send pipeline run events", () => {
let emit: EmitterFunction
beforeAll( () => {
emit = emitterFor(httpTransport("http://localhost:8888/events"));
})
it("Send failed event", async () => {
const eventFile = "pkg/events/custom/tekton/testdata/event-pipelinerun.failed.json";
const event = loadCloudEvent(eventFile);
await emit(event);
});
}); |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wuhuizuo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…228-76-geadd400` (#1260) Ref: - PingCAP-QE/ee-apps#165 - PingCAP-QE/ee-apps#168
Signed-off-by: wuhuizuo wuhuizuo@126.com