Ignore pax-exam's test-dependencies feature
[controller.git] / opendaylight / config / config-persister-feature4-adapter / src / main / java / org / opendaylight / controller / configpusherfeature / internal / FeatureConfigPusher.java
index ed1b6203812c537da4868c3420e45832d4144abd..e90221293c254addf8911f6fa22a3d5d84bf58c5 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();