diff --git a/fuse-pocs-fabric/fuse-pocs-fabric-itest/pom.xml b/fuse-pocs-fabric/fuse-pocs-fabric-itest/pom.xml
index ffda455..e93f47f 100644
--- a/fuse-pocs-fabric/fuse-pocs-fabric-itest/pom.xml
+++ b/fuse-pocs-fabric/fuse-pocs-fabric-itest/pom.xml
@@ -13,7 +13,8 @@
fuse-pocs-fabric-itest
- 1.0.0.redhat-346
+ 1.0.0.redhat-379
+ 5.9.0.redhat-610379
@@ -42,33 +43,18 @@
org.apache.activemq
activemq-client
- 5.9.0.redhat-610346
+ ${activemq-version}
-
-
-
-
-
org.apache.activemq
activemq-osgi
- 5.9.0.redhat-610346
+ ${activemq-version}
org.jboss.amq
mq-fabric
- 6.1.0.redhat-346
+ 6.1.0.redhat-379
-
-
-
-
-
-
-
-
-
-
org.springframework
@@ -93,54 +79,12 @@
2.4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- jboss-fuse-ea
- https://repository.jboss.org/nexus/content/groups/ea
+ jboss-fuse
+ https://repository.jboss.org/nexus/content/groups/fs-public
diff --git a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/AmqBrokerTest.java b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/AmqBrokerTest.java
index 610f6b0..bfd291b 100644
--- a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/AmqBrokerTest.java
+++ b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/AmqBrokerTest.java
@@ -17,6 +17,8 @@
package camelpoc;
import io.fabric8.api.Container;
+import io.fabric8.api.FabricService;
+import io.fabric8.api.ServiceProxy;
import io.fabric8.itests.paxexam.support.FabricTestSupport;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.junit.After;
@@ -70,10 +72,12 @@ public void tearDown() throws InterruptedException {
@Test
public void shouldCreateAmqBroker() throws Exception {
// Given
+ ServiceProxy fabricService = ServiceProxy.createServiceProxy(bundleContext, FabricService.class);
+
String message = "message";
String queue = "queue";
System.err.println(executeCommand("fabric:create -n"));
- containers = create().withName("router-container").withProfiles("mq-amq").
+ containers = create(fabricService).withName("router-container").withProfiles("mq-amq").
assertProvisioningResult().build();
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("admin", "admin", "discovery:(fabric:default)");
JmsTemplate jms = new JmsTemplate(connectionFactory);
diff --git a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/MasterTest.java b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/MasterTest.java
index d97db87..0148ec0 100644
--- a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/MasterTest.java
+++ b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/MasterTest.java
@@ -17,6 +17,8 @@
package camelpoc;
import io.fabric8.api.Container;
+import io.fabric8.api.FabricService;
+import io.fabric8.api.ServiceProxy;
import io.fabric8.itests.paxexam.support.ContainerBuilder;
import io.fabric8.itests.paxexam.support.FabricTestSupport;
import org.apache.commons.io.IOUtils;
@@ -40,18 +42,20 @@ public class MasterTest extends FabricTestSupport {
@Test
public void shouldKeepSingletonNetty() throws Exception {
+ ServiceProxy fabricService = ServiceProxy.createServiceProxy(bundleContext, FabricService.class);
+
System.err.println(executeCommand("fabric:create -n"));
System.err.println(executeCommand("fabric:profile-create --parents feature-camel foo"));
System.err.println(executeCommand("fabric:profile-edit --features camel-netty-http foo"));
System.err.println(executeCommand("fabric:profile-edit --bundles mvn:fuse-pocs/fuse-pocs-fabric-bundle/1.0-SNAPSHOT foo"));
- Container master = (Container) ContainerBuilder.create().withName("master").withProfiles("foo").assertProvisioningResult().build().iterator().next();
+ Container master = (Container) ContainerBuilder.create(fabricService).withName("master").withProfiles("foo").assertProvisioningResult().build().iterator().next();
InputStream inputStream = new URL("http://localhost:18081/").openStream();
String response = IOUtils.toString(inputStream);
assertEquals("master", response);
- Container slave = (Container) ContainerBuilder.create().withName("slave").withProfiles("foo").assertProvisioningResult().build().iterator().next();
+ Container slave = (Container) ContainerBuilder.create(fabricService).withName("slave").withProfiles("foo").assertProvisioningResult().build().iterator().next();
master.destroy();
inputStream = new URL("http://localhost:18081/").openStream();
diff --git a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SimpleFabricTest.java b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SimpleFabricTest.java
index cf0184a..ecaf34c 100644
--- a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SimpleFabricTest.java
+++ b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SimpleFabricTest.java
@@ -2,6 +2,8 @@
import fuse.pocs.fabric.NettyHttpRoute;
import io.fabric8.api.Container;
+import io.fabric8.api.FabricService;
+import io.fabric8.api.ServiceProxy;
import io.fabric8.itests.paxexam.support.ContainerBuilder;
import io.fabric8.itests.paxexam.support.FabricTestSupport;
import org.apache.commons.io.IOUtils;
@@ -44,12 +46,14 @@ public void tearDown() throws InterruptedException {
@Test
public void shouldCreateCamelRouter() throws Exception {
+ ServiceProxy fabricService = ServiceProxy.createServiceProxy(bundleContext, FabricService.class);
+
// Given
err.println(executeCommand("fabric:create -n"));
err.println(executeCommand("fabric:profile-create --parents feature-camel netty-http-server"));
err.println(executeCommand("fabric:profile-edit --features camel-netty-http netty-http-server"));
err.println(executeCommand("fabric:profile-edit --bundles mvn:fuse-pocs/fuse-pocs-fabric-bundle/1.0-SNAPSHOT netty-http-server"));
- containers = ContainerBuilder.create().
+ containers = ContainerBuilder.create(fabricService).
withName("router-container").withProfiles("netty-http-server").
assertProvisioningResult().build();
InputStream inputStream = new URL("http://localhost:18080/").openStream();
diff --git a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SshTest.java b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SshTest.java
index fce87c3..dcb514a 100644
--- a/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SshTest.java
+++ b/fuse-pocs-fabric/fuse-pocs-fabric-itest/src/test/java/camelpoc/SshTest.java
@@ -17,6 +17,8 @@
package camelpoc;
import io.fabric8.api.Container;
+import io.fabric8.api.FabricService;
+import io.fabric8.api.ServiceProxy;
import io.fabric8.itests.paxexam.support.ContainerBuilder;
import io.fabric8.itests.paxexam.support.FabricTestSupport;
import org.junit.After;
@@ -56,11 +58,12 @@ public void tearDown() throws InterruptedException {
@Test
public void shouldListBundleOnRemoteMachine() throws Exception {
// Given
+ ServiceProxy fabricService = ServiceProxy.createServiceProxy(bundleContext, FabricService.class);
System.err.println(executeCommand("fabric:create -n"));
System.err.println(executeCommand("fabric:profile-create --parents feature-camel netty-http-server"));
System.err.println(executeCommand("fabric:profile-edit --features camel-netty-http netty-http-server"));
System.err.println(executeCommand("fabric:profile-edit --bundles mvn:fuse-pocs/fuse-pocs-fabric-bundle/1.0-SNAPSHOT netty-http-server"));
- containers = create().withName("router-container").withProfiles("netty-http-server").
+ containers = create(fabricService).withName("router-container").withProfiles("netty-http-server").
assertProvisioningResult().build();
Container container = containers.iterator().next();
String[] containerSshUrl = container.getSshUrl().split(":");