From: Michal Rehak Date: Fri, 23 Jan 2015 21:12:26 +0000 (+0100) Subject: BUG-2637: migrate features X-Git-Tag: release/lithium~526^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=300d247c3c68387bf0bed3fc9dd90558ebe01f3f BUG-2637: migrate features - remove migrated features - integration test fix: - commented out dependencies to models affected by migration - adapted sal-binding-it in order not to push those models into pax-exam context - adapted sal-binding-broker-impl to use those models only in test scope - cleaned commented code/config Change-Id: I8e09a7cd9ff9ba0f041abe1bf739be755aed3e8d Signed-off-by: Michal Rehak --- diff --git a/features/flow/pom.xml b/features/flow/pom.xml index 53b45d2810..d4a3f02762 100644 --- a/features/flow/pom.xml +++ b/features/flow/pom.xml @@ -24,26 +24,6 @@ xml - - org.opendaylight.controller.md - statistics-manager-config - ${mdsal.version} - xml - config - - - - org.opendaylight.controller.model - model-flow-base - - - org.opendaylight.controller.model - model-flow-service - - - org.opendaylight.controller.model - model-flow-statistics - org.opendaylight.controller.model model-inventory @@ -52,26 +32,7 @@ org.opendaylight.controller.model model-topology - - org.opendaylight.controller.md - topology-manager - - - org.opendaylight.controller.md - topology-lldp-discovery - - - org.opendaylight.controller.md - statistics-manager - - - org.opendaylight.controller.md - inventory-manager - - - org.opendaylight.controller.md - forwardingrules-manager - + org.opendaylight.yangtools diff --git a/features/flow/src/main/resources/features.xml b/features/flow/src/main/resources/features.xml index cf54e8b446..860d0c27a2 100644 --- a/features/flow/src/main/resources/features.xml +++ b/features/flow/src/main/resources/features.xml @@ -6,22 +6,7 @@ mvn:org.opendaylight.controller/features-mdsal/${mdsal.version}/xml/features odl-yangtools-models - mvn:org.opendaylight.controller.model/model-flow-base/${project.version} - mvn:org.opendaylight.controller.model/model-flow-service/${project.version} - mvn:org.opendaylight.controller.model/model-flow-statistics/${project.version} mvn:org.opendaylight.controller.model/model-inventory/${project.version} mvn:org.opendaylight.controller.model/model-topology/${project.version} - - odl-mdsal-broker - odl-flow-model - mvn:org.opendaylight.controller.md/topology-manager/${project.version} - mvn:org.opendaylight.controller.md/topology-lldp-discovery/${project.version} - mvn:org.opendaylight.controller.md/statistics-manager/${project.version} - mvn:org.opendaylight.controller.md/inventory-manager/${project.version} - mvn:org.opendaylight.controller.md/forwardingrules-manager/${project.version} - mvn:org.opendaylight.controller/liblldp/${sal.version} - mvn:org.opendaylight.controller.md/statistics-manager-config/${mdsal.version}/xml/config - - diff --git a/opendaylight/md-sal/sal-binding-broker/pom.xml b/opendaylight/md-sal/sal-binding-broker/pom.xml index 9346e223df..1cf0f7f097 100644 --- a/opendaylight/md-sal/sal-binding-broker/pom.xml +++ b/opendaylight/md-sal/sal-binding-broker/pom.xml @@ -50,14 +50,17 @@ org.opendaylight.controller.model model-flow-base + test org.opendaylight.controller.model model-flow-service + test org.opendaylight.controller.model model-flow-statistics + test org.opendaylight.yangtools diff --git a/opendaylight/md-sal/sal-binding-it/src/main/java/org/opendaylight/controller/test/sal/binding/it/TestHelper.java b/opendaylight/md-sal/sal-binding-it/src/main/java/org/opendaylight/controller/test/sal/binding/it/TestHelper.java index 96f52bd8dc..9f5bdd439e 100644 --- a/opendaylight/md-sal/sal-binding-it/src/main/java/org/opendaylight/controller/test/sal/binding/it/TestHelper.java +++ b/opendaylight/md-sal/sal-binding-it/src/main/java/org/opendaylight/controller/test/sal/binding/it/TestHelper.java @@ -156,8 +156,6 @@ public class TestHelper { public static Option flowCapableModelBundles() { return new DefaultCompositeOption( // - mavenBundle(CONTROLLER_MODELS, "model-flow-base").versionAsInProject(), // // - mavenBundle(CONTROLLER_MODELS, "model-flow-service").versionAsInProject(), // // mavenBundle(CONTROLLER_MODELS, "model-inventory").versionAsInProject() // ); diff --git a/opendaylight/md-sal/sal-binding-it/src/test/java/org/opendaylight/controller/test/sal/binding/it/NotificationTest.java b/opendaylight/md-sal/sal-binding-it/src/test/java/org/opendaylight/controller/test/sal/binding/it/NotificationTest.java index e1d5d0060d..41208091cf 100644 --- a/opendaylight/md-sal/sal-binding-it/src/test/java/org/opendaylight/controller/test/sal/binding/it/NotificationTest.java +++ b/opendaylight/md-sal/sal-binding-it/src/test/java/org/opendaylight/controller/test/sal/binding/it/NotificationTest.java @@ -165,7 +165,6 @@ public class NotificationTest extends AbstractTest { } /** - * * Implements * {@link OpendaylightTestNotificationListener} and contains attributes which keep lists of objects of * the type {@link OutOfFairyDustNotification}. diff --git a/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java b/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java index 30f1762197..93b398f5b1 100644 --- a/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java +++ b/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java @@ -31,7 +31,6 @@ import static org.junit.Assert.assertEquals; import static org.opendaylight.controller.test.sal.binding.it.TestHelper.baseModelBundles; import static org.opendaylight.controller.test.sal.binding.it.TestHelper.bindingAwareSalBundles; import static org.opendaylight.controller.test.sal.binding.it.TestHelper.configMinumumBundles; -import static org.opendaylight.controller.test.sal.binding.it.TestHelper.flowCapableModelBundles; import static org.opendaylight.controller.test.sal.binding.it.TestHelper.junitAndMockitoBundles; import static org.opendaylight.controller.test.sal.binding.it.TestHelper.mdSalCoreBundles; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; @@ -67,7 +66,6 @@ public class ToasterTest { configMinumumBundles(), // BASE Models baseModelBundles(), - flowCapableModelBundles(), // Set fail if unresolved bundle present systemProperty("pax.exam.osgi.unresolved.fail").value("true"), diff --git a/opendaylight/md-sal/samples/toaster-provider/pom.xml b/opendaylight/md-sal/samples/toaster-provider/pom.xml index 08f0988b5c..dd9810388d 100644 --- a/opendaylight/md-sal/samples/toaster-provider/pom.xml +++ b/opendaylight/md-sal/samples/toaster-provider/pom.xml @@ -64,6 +64,27 @@ test + + com.google.guava + guava + + + org.opendaylight.yangtools + yang-binding + + + org.opendaylight.yangtools.model + yang-ext + + + org.opendaylight.yangtools.model + ietf-yang-types + + + org.opendaylight.yangtools.model + opendaylight-l2-types + +