Skip to content
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

Variables - test coverage #5654

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

JiriOndrusek
Copy link
Contributor

Partially fixes #5620
(the other part of the solution is the example - apache/camel-quarkus-examples#194)

This PR adds basic variables coverage into integration-test-groups/foundation.

One test (customVariablerepository) is not executed in the native move, because it is not possible to remove a CDI bean for one test. IMO the tested functionality uses functions which were already part of the Camel before, therefore there is no reason to test this in native.

@JiriOndrusek JiriOndrusek changed the title Variables - global vs local setVariable test Variables - test coverage Jan 17, 2024
Copy link
Contributor

@aldettinger aldettinger left a comment

Choose a reason for hiding this comment

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

Looks pretty decent @JiriOndrusek

Concerning mock.reset(), I would vote to find another way if possible. If too difficult, maybe we just add a comment to have context in case the test is proven to be flaky on ci one day.

@JiriOndrusek JiriOndrusek force-pushed the variable-support branch 2 times, most recently from 8b2cd18 to d4756fe Compare January 17, 2024 15:19
@JiriOndrusek
Copy link
Contributor Author

JiriOndrusek commented Jan 17, 2024

Looks pretty decent @JiriOndrusek

Concerning mock.reset(), I would vote to find another way if possible. If too difficult, maybe we just add a comment to have context in case the test is proven to be flaky on ci one day.

Thank you for the review!
I removed mock.reset by joining 2 rest calls into 1 test method, which ensures order, therefore no reset() is required.

@JiriOndrusek JiriOndrusek merged commit 088561d into apache:camel-main Jan 22, 2024
21 of 23 checks passed
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this pull request Feb 13, 2024
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this pull request Feb 13, 2024
jamesnetherton pushed a commit to JiriOndrusek/camel-quarkus that referenced this pull request Feb 17, 2024
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.

4 participants