X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Ftest%2Fsal-rest-connector-it%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftest%2Frestconf%2Fit%2FServiceProviderController.java;h=fda1e264e6babd472799340faeda579174c497b8;hb=e640f23d9c37afac9ca51f48e155302bc65327ed;hp=23ba8aaea41e5866fc1934290bfd17f6154aadd9;hpb=d542617f3486541cf9937009fb6aa1e3f2c9f0e2;p=controller.git diff --git a/opendaylight/md-sal/test/sal-rest-connector-it/src/test/java/org/opendaylight/controller/test/restconf/it/ServiceProviderController.java b/opendaylight/md-sal/test/sal-rest-connector-it/src/test/java/org/opendaylight/controller/test/restconf/it/ServiceProviderController.java index 23ba8aaea4..fda1e264e6 100644 --- a/opendaylight/md-sal/test/sal-rest-connector-it/src/test/java/org/opendaylight/controller/test/restconf/it/ServiceProviderController.java +++ b/opendaylight/md-sal/test/sal-rest-connector-it/src/test/java/org/opendaylight/controller/test/restconf/it/ServiceProviderController.java @@ -21,7 +21,6 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker; import org.opendaylight.controller.sal.connect.netconf.InventoryUtils; -import org.opendaylight.controller.sal.connect.netconf.NetconfDeviceManager; import org.opendaylight.controller.sal.connect.netconf.NetconfInventoryUtils; import org.opendaylight.controller.sal.core.api.data.DataBrokerService; import org.opendaylight.controller.sal.core.api.mount.MountProvisionInstance; @@ -61,9 +60,6 @@ public class ServiceProviderController { @Inject DataBrokerService dataBroker; - @Inject - NetconfDeviceManager netconfManager; - @Test public void properInitialized() throws Exception { @@ -72,8 +68,6 @@ public class ServiceProviderController { InstanceIdentifier path = InstanceIdentifier.builder(InventoryUtils.INVENTORY_PATH) .nodeWithKey(InventoryUtils.INVENTORY_NODE, InventoryUtils.INVENTORY_ID, "foo").toInstance(); - netconfManager.netconfNodeAdded(path, new InetSocketAddress("127.0.0.1", 8383)); - InstanceIdentifier mountPointPath = path; @@ -157,6 +151,9 @@ public class ServiceProviderController { systemProperty("netconf.tcp.address").value("127.0.0.1"), systemProperty("netconf.tcp.port").value("8383"), + systemProperty("netconf.tcp.client.address").value("127.0.0.1"), + systemProperty("netconf.tcp.client.port").value("8383"), + // Set the systemPackages (used by clustering) systemPackages("sun.reflect", "sun.reflect.misc", "sun.misc"),