For test with one karaf container karaf exam is already really great.
For some cases though I would like to create more than one karaf.
For example in cxf dosgi I would like to have two instances:
1) Client for service and DOSGi infrastructure
2) Service provider, DOSGi infrastructure, Zookeeper server

My test would run inside container 1 but it would also need container 2.

So what are the best practices to achieve this?

I have found similar cases in Karaf Cellar. There the karaf
admin(instance) service is used to create another karaf instance. Then
the connect command is used to issue shell commands that configure the
remote instance.
While this works it is very verbose and contains a lot of sleeps to wait
for commands to finish.

What I would ideally be looking for is to have one set of pax exam
options for each container. Is that possible?

Christian

Reply via email to