sonatype/nexus-obr-plugin — pull request #8 by adreghiciu (2012-08-28 10:19:44+00:00)
Title: [NXCM-2795] OBR groups do not work properly if they contain more than on hosted repository

The problem was that the event listener that listens to events about bundles being deployed / deleted did not took in count from which repository the event was coming from. This resulted in a situation where all OBR hosted repositories were containing obr.xml resource entries for bundles that did not exist actually in that repository.

Given this situation when a group repository was asked about an bundle, it was looking in obr.xml for that repository. As all repositories were wrongly saying that they contain a bundle even if they don't group was stopping asking further.

The pull request contains more that the fix and IT for it. I also rewritten all ITs to use the new testsuite support. Doing this reveled the above problem also in another IT (group of group). The IT was passing as all ITs that were testing against Felix to install were also using the default OBR felix repository, that contains also the bundles from our tests. This gave false positives as felix instead of using the OBR repo specified in IT was actually using the default OBR repo.