-
Notifications
You must be signed in to change notification settings - Fork 344
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
Add classpath kamelet loading test #2516
Conversation
a42cc30
to
122ba66
Compare
@astefanutti can you review, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some concern.
I am not sure if we should rely on external kamelet provider, altough it's the official kamelet catalog. I'd prefer to create a copy of the Kamelet we want to test locally instead.
For sure, we should not use a Kamelet that is polling an external service. If the external service is broken, our CI will break as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
I am not sure how to make it. The copy of the Kamelet has to be packaged to a maven repository and I didn't find a way how to force jitpack to work with repository subdirs. Can you advise me in this area?
Yes, you are right I will fix it. |
I think you can provide it as a custom resource. I guess you can leverage the API and maybe provide some support method to use that also in the future.
|
I think @squakez raised two valid concerns w.r.t. testing stability:
I think the later is the less trustable when it comes to availability guarantee, so the short term solution would be to depend on another Kamelet, without a dependency on an external system, and use a stable version of that Kamelet. |
so I will use a timer kamelet with a released tag of |
Sounds good. We can also think about what's the best approach to rely on a local Kamelet. Maybe having it as a resource could work, since Integration resources are added to the classpath. |
Release Note