Hi folks, I'm trying to develop integration tests for karaf in docker. So basically, I build a docker image with all my features/bunbles installed and I want to make some integration tests against this image. The gold of this is isolation and portability.
So I know I can use citrus to test the image as a black box by sending some inputs and check the outputs. This is fine but we can't test the OSGi registry and checks if everything is well configured/injected. So as I was already a bit familiar with pax-exam, I tried to see if it was possible to use it on an "already installed karaf remote instance" and it seems it's not... Then I take a look at arquillian-osgi and its module for a karaf remote instance, as arquillian has also a recent support for docker via arquillian-cube I though it may be the good match but it doesn't work as the arquillian-container-karaf-remote rely on jmx/rmi and it doesn't work well inside docker. Even if I set the environment variable EXTRA_JAVA_OPTS=-Djava.rmi.server.hostname=192.168.99.101 which allows me to connect via the jConsole, the arquillian plugin is still not able to connect. So my question here is : - does anyone already try to perform such integrations tests with karaf ? - If so, what do you use ? Do you have examples ? Regards, Arnaud
