org.ops4j.pax.exam2 icon indicating copy to clipboard operation
org.ops4j.pax.exam2 copied to clipboard

Bundle noStart() doesn't work in Karaf container [PAXEXAM-807]

Open ops4j-issues opened this issue 7 years ago • 1 comments

Amichai Rothman created PAXEXAM-807

When configuring bundles in a Karaf test container e.g. via mavenBundle(), one can call start() or noStart() (in AbstractProvisionControl) to specify whether the bundle will be started automatically or just resolved. However it seems this is ignored and does not actually work - the bundle is always started regardless of the configuration.

A bit of debugging shows that DependenciesDeployer.writeDependenciesFeature creates a feature with the bundles, but it fails to check shouldStart and set a start attribute on the bundle accordingly, which to my understanding is what it should do.


Affects: 4.10.0 Votes: 0, Watches: 1

ops4j-issues avatar Feb 27 '17 22:02 ops4j-issues