-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix(camelContext): expand tree for routes, endpoints & components #695
Conversation
Test resultsRun attempt: 896
|
de4af10
to
16bc9b3
Compare
You can probably add a |
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.
Thanks, I really like the simplicity of the fix.
There's only one minor comment that should be easy to address.
The requirement natually demands the camel context node to be expanded, so it should be no problem. As commented above, we should just move the By the way, Camel v4 enforces that we only have one Camel context, so we can assume that the root only has one child. However, we still contain children as list, so considering the requirement we shouldn't need to expand (virtual) second or third Camel context nodes. So the logic can focus on the first child of the root node (i.e.
Yes, we struggle to have better component test suite in this project. We can tackle this issue separately. For the time being, we just need to pass all the existing E2E tests (based on Cucumber), which unfortunately all failed now. |
Hi @tadayosi I will have a look at this UPD: from a quick look I see that the test tries to create an endpoint `mock://bar' from Data and it seems it didn't get created and therefore there are failures of the tests which rely on that endpoint I will continue checking it and try to fix it |
@tadayosi I found the issue, let's say it's a bug in our tests. We use one unified method used for clicking on buttons (we pass a parameter which usually a button's text and find the button by its type and text), in this scenario we have to add an endpoint from Data and then in one step test scenario we have to choose |
16bc9b3
to
de70018
Compare
@tadayosi - Thanks for your help, I've made the changes. @phantomjinx - For some reason running |
chore(lint): fix linting error fix: move logic out of forEach of rootNode fix: lint
de70018
to
3869754
Compare
@kahboom Thanks. I'll take care of the lint error this time. Next time, please remember to run |
Ah apologies @tadayosi I thought I only needed to run |
Description
This PR expands the Camel context tree by one level, leaving
MBeans
collapsed. Resolves #665 .@tadayosi - Apologies for the delay on this issue. There were no lint issues with the
switch
statement. Some questions:child.defaultExpanded = true
? This will expand all root children by one (in this case,SampleCamel
. Or is there a particular property you want me to do a conditional check for?