Details
Description
The current snapshots of sling testing tools (1.0.7-SNAPSHOT) and sling junit remote (1.0.9-SNAPSHOT) were incorrectly failing tests when the same bundles were being deployed to an existing OSGi environment. This was happening because the bundles had the same version number as the bundles that were already installed, and OSGi was getting confused because there was no refresh packages after the install.
So, the current test workflow is this:
- install bundles
- verify bundles are installed
- activate bundles
- start bundles
- run tests
- exit
And I've modified the code to change it to this:
- install bundles
- refresh packages
- verify bundles are installed
- activate bundles
- start bundles
- run tests
- uninstall bundles (optional)
- refresh packages (optional)
- exit
See attached patch file.