Repository: camel Updated Branches: refs/heads/master d97c96251 -> 8caf2a416
camel-atomix: add Karaf feature Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8caf2a41 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8caf2a41 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8caf2a41 Branch: refs/heads/master Commit: 8caf2a416853f87dc07f27207f5deb3d8ffd2075 Parents: d97c962 Author: lburgazzoli <lburgazz...@gmail.com> Authored: Thu Jun 22 14:33:56 2017 +0200 Committer: lburgazzoli <lburgazz...@gmail.com> Committed: Thu Jun 22 14:34:30 2017 +0200 ---------------------------------------------------------------------- parent/pom.xml | 5 +- .../features/src/main/resources/features.xml | 11 ++++ .../camel/itest/karaf/CamelAtomixTest.java | 58 ++++++++++++++++++++ 3 files changed, 72 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/8caf2a41/parent/pom.xml ---------------------------------------------------------------------- diff --git a/parent/pom.xml b/parent/pom.xml index 51995e0..42077c1 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -73,6 +73,7 @@ <atmosphere-version-range>[2.4,3.0)</atmosphere-version-range> <atomix-version>1.0.8</atomix-version> <atomix-catalyst-version>1.2.1</atomix-catalyst-version> + <atomix-copycat-version>1.2.8</atomix-copycat-version> <automaton-bundle-version>1.11-8_1</automaton-bundle-version> <avalon-bundle-version>4.3.1_1</avalon-bundle-version> <avalon-version>4.3.1</avalon-version> @@ -175,7 +176,7 @@ <depends-maven-plugin-version>1.3.1</depends-maven-plugin-version> <derby-version>10.11.1.1</derby-version> <digitalocean-api-client-version>2.10</digitalocean-api-client-version> - <digitalocean-api-client-bundle-version>2.10_1</digitalocean-api-client-bundle-version> + <digitalocean-api-client-bundle-version>2.10_1</digitalocean-api-client-bundle-version> <disruptor-version>3.3.6</disruptor-version> <dnsjava-version>2.1.8</dnsjava-version> <dnsjava-bundle-version>2.1.8_1</dnsjava-bundle-version> @@ -255,7 +256,7 @@ <google-api-services-mail-version>v1-rev63-1.22.0</google-api-services-mail-version> <google-api-services-pubsub-version>v1-rev12-1.22.0</google-api-services-pubsub-version> <google-truth-version>0.30</google-truth-version> - <grizzly-websockets-version>2.3.25</grizzly-websockets-version> + <grizzly-websockets-version>2.3.25</grizzly-websockets-version> <grpc-version>1.2.0</grpc-version> <grpc-bundle-version>1.2.0_1</grpc-bundle-version> <gson-version>2.7</gson-version> http://git-wip-us.apache.org/repos/asf/camel/blob/8caf2a41/platforms/karaf/features/src/main/resources/features.xml ---------------------------------------------------------------------- diff --git a/platforms/karaf/features/src/main/resources/features.xml b/platforms/karaf/features/src/main/resources/features.xml index 94c6258..810d3ab 100644 --- a/platforms/karaf/features/src/main/resources/features.xml +++ b/platforms/karaf/features/src/main/resources/features.xml @@ -144,6 +144,17 @@ <bundle dependency='true'>mvn:commons-codec/commons-codec/${commons-codec-version}</bundle> <bundle>mvn:org.apache.camel/camel-atom/${project.version}</bundle> </feature> + <feature name='camel-atomix' version='${project.version}' resolver='(obr)' start-level='50'> + <feature version='${project.version}'>camel-core</feature> + <bundle dependency='true'>mvn:io.netty/netty-common/${netty-version}</bundle> + <bundle dependency='true'>mvn:io.netty/netty-buffer/${netty-version}</bundle> + <bundle dependency='true'>mvn:io.netty/netty-resolver/${netty-version}</bundle> + <bundle dependency='true'>mvn:io.netty/netty-handler/${netty-version}</bundle> + <bundle dependency='true'>mvn:io.netty/netty-codec/${netty-version}</bundle> + <bundle dependency='true'>mvn:io.netty/netty-transport/${netty-version}</bundle> + <bundle dependency='true'>mvn:io.atomix./atomix-all/${atomix-version}</bundle> + <bundle>mvn:org.apache.camel/camel-atomix/${project.version}</bundle> + </feature> <feature name='camel-avro' version='${project.version}' resolver='(obr)' start-level='50'> <details>The camel-avro feature can only run if you have libsnappyjava.dylib in java.library.path</details> <feature version='${project.version}'>camel-core</feature> http://git-wip-us.apache.org/repos/asf/camel/blob/8caf2a41/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAtomixTest.java ---------------------------------------------------------------------- diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAtomixTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAtomixTest.java new file mode 100644 index 0000000..d2b6e93 --- /dev/null +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAtomixTest.java @@ -0,0 +1,58 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.itest.karaf; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.ops4j.pax.exam.junit.PaxExam; + +@RunWith(PaxExam.class) +public class CamelAtomixTest extends BaseKarafTest { + + public static final String COMPONENT = extractName(CamelAtomixTest.class); + + @Test + public void testMap() throws Exception { + testComponent(COMPONENT, "atomix-map"); + } + + @Test + public void testMultiMap() throws Exception { + testComponent(COMPONENT, "atomix-multimap"); + } + + @Test + public void testSet() throws Exception { + testComponent(COMPONENT, "atomix-set"); + } + + @Test + public void testQueue() throws Exception { + testComponent(COMPONENT, "atomix-queue"); + } + + @Test + public void testValue() throws Exception { + testComponent(COMPONENT, "atomix-value"); + } + + @Test + public void testMessaging() throws Exception { + testComponent(COMPONENT, "atomix-messaging"); + } + +}