[PAXLOGGING] Integration tests using Karaf

8 views
Skip to first unread message

Grzegorz Grzybek

unread,
Jul 18, 2019, 8:12:53 AM7/18/19
to op...@googlegroups.com
Hello

With https://ops4j1.jira.com/browse/PAXLOGGING-262 I added Karaf (4.2.6) test support to Pax Logging.

As guessed, it was tricky:
 - custom Karaf distro had to be prepared to contain pax-logging bundles from current reactor
 - logging configuration for pax-exam-container-karaf forked by maven-failsafe-plugin and forking another (3rd) JVM with Karaf itself has to be careful

Some findings/highlights:
 - I created very slim pax-exam configuration for custom Karaf distro built just before the integration tests (separate Maven artifact)
 - there are no conflicts between logging from Maven, logging from forked pax-exam and forked Karaf
 - default service log provided by pax-logging-api (even before it starts! just after it resolves) works like a charm - bundle started BEFORE pax-logging-api can successfully log through SLF4J API


best regards
Grzegorz Grzybek

françois papon

unread,
Jul 22, 2019, 3:34:18 PM7/22/19
to op...@googlegroups.com
Thanks Grzegorz for sharing!

regards,

François Papon

--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/CAAdXmhq8b3y-fPtJOBaf15%2BNOFPEQK%3DxrCpXHMn4L2ZHwkXNuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages