Skip to content

test(e2e): cover Knative channel eventing - #6975

Open
knockknock10 wants to merge 10 commits into
apache:mainfrom
knockknock10:test/6960-knative-eventing-e2e
Open

knockknock10 wants to merge 10 commits into
apache:mainfrom
knockknock10:test/6960-knative-eventing-e2e

Conversation

@knockknock10

@knockknock10 knockknock10 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Closes #6960

Adds an end-to-end test for Knative eventing using Camel's Knative component, without explicit Knative trait configuration.

The test:

  • Creates a Knative Channel using the in-memory channel implementation provided by the existing Knative workflow.
  • Starts a consumer Integration to receive events from the channel.
  • Starts a producer Integration to publish a message to the same channel.
  • Verifies that the consumer Integration receives the expected message.

The test follows the producer-consumer approach used by the existing Kafka E2E tests.

Copilot AI balanced review requested due to automatic review settings November 15, 2026 15:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@squakez squakez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note. We should only set timeout on the first Integration ready condition to medium, then, let it use the default one implicitly.

Comment thread e2e/knative/knative_eventing_test.go Resolved
@squakez

squakez commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@knockknock10 the integrations are failing with:

Caused by: java.lang.IllegalStateException: Cannot load Knative configuration
                from file or env variable\n\tat org.apache.camel.component.knative.KnativeComponent.getKnativeConfiguration(KnativeComponent.java:284)\n\tat
                org.apache.camel.component.knative.KnativeComponent.createEndpoint(KnativeComponent.java:222)\n\tat

you can check in the existing and deprecated trait (or the Camel documentation) how this was configured and it is likely needed to provide now explicitly in order to be able to start it up properly a knative based integration.

@knockknock10

Copy link
Copy Markdown
Contributor Author

@knockknock10 the integrations are failing with:

Caused by: java.lang.IllegalStateException: Cannot load Knative configuration
                from file or env variable\n\tat org.apache.camel.component.knative.KnativeComponent.getKnativeConfiguration(KnativeComponent.java:284)\n\tat
                org.apache.camel.component.knative.KnativeComponent.createEndpoint(KnativeComponent.java:222)\n\tat

you can check in the existing and deprecated trait (or the Camel documentation) how this was configured and it is likely needed to provide now explicitly in order to be able to start it up properly a knative based integration.

yeah sure
am checking that (in the existing and deprecated trait)
I will make sure everything is handled properly then will let u know / ping you 🙂!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write a Knative eventing e2e test

3 participants