Ignore pax-exam's test-dependencies feature 74/51874/3
authorRobert Varga <rovarga@cisco.com>
Tue, 14 Feb 2017 16:55:46 +0000 (17:55 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 14 Feb 2017 18:30:17 +0000 (18:30 +0000)
pax-exam wraps the test dependencies in a feature, which certainly
should not hold anything of interest. Ignore it.

Change-Id: I952fe65172277f3f156727b3302478db8a3533cb
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/config/config-persister-feature4-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/FeatureConfigPusher.java

index ed1b620..e902212 100644 (file)
@@ -82,6 +82,11 @@ public class FeatureConfigPusher {
             LOG.debug("Ignoring conditional feature {}", feature);
             return Collections.emptySet();
         }
+        // pax-exam's Karaf container generates a wrapper feature holding the test dependencies. Ignore it.
+        if ("test-dependencies".equals(feature.getName())) {
+            LOG.debug("Ignoring pax-exam wrapper feature {}", feature);
+            return Collections.emptySet();
+        }
 
         if (!isInstalled(feature)) {
             return Collections.emptySet();