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

Fusetools 3497 fix jmx nodes with fuse 7.9 #1703

Merged

Conversation

apupier
Copy link
Member

@apupier apupier commented Aug 24, 2021

improve support of reading Karaf properties file to
detect JMX connection

unit test provided covering 7.8 (and surely all 6.x and 7.x) and 7.9. I' think that there is a test on QE side testing the jmx connection when new Fuse Karaf is provided. To be checked. if not the case, I think it remains more interesting to have the test at this level. it will allow to better to detect potential issues than the unit tests as it can be affected by a lot of peripheral parts. Issue for new UI test https://issues.redhat.com/browse/FUSETOOLS-3499

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
detect JMX connection

- done the required part to support the default case starting from Fuse
7.9
- not all cases covered (several ${env in the same property, ${prop)but
enough for default case and still more than before.
- seems cannot reuse directly Karaf code to interpolate properties
https://github.com/apache/karaf/blob/5144a1eba5687dab0f016a9bf95e58e6687a26ad/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L236
as the system.properties is expected to be preloaded and o not taking
care of default values provided at this place but got inspiration from
this code

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@apupier apupier requested a review from a team as a code owner August 24, 2021 08:09
@apupier apupier requested a review from lhein August 26, 2021 09:53
@apupier apupier merged commit 32e9e04 into jbosstools:master Aug 30, 2021
@apupier apupier deleted the FUSETOOLS-3497-FixJMXNodesWithFuse7.9 branch August 30, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants