Skip to content

Kafka functions: integration and E2E tests #3956

Description

@aliok

Add automated integration and E2E tests for Kafka event sourcing.

Automated tests (CI)

  • Function with run.kafka config deploys successfully
  • Kafka env vars (FUNC_TRANSPORT, KAFKA_BROKERS, KAFKA_TOPIC, KAFKA_CONSUMER_GROUP) are propagated to the container
  • Validation rejects incomplete Kafka config before deploy
  • Validation rejects run.kafka on non-Go runtimes
  • End-to-end: deploy a Kafka function, produce a message, verify the function receives and processes a CloudEvent

Requires a Kafka broker in the test environment (e.g. Strimzi on kind).

Testing guide

Document how to manually test Kafka functions end-to-end on a local cluster — setting up kind + Knative + Kafka, deploying, producing messages, verifying.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions