Repository: camel Updated Branches: refs/heads/master c237ae8c7 -> dd6755d47
CAMEL-11103: Add camel-digitalocean Karaf feature Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dd6755d4 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dd6755d4 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dd6755d4 Branch: refs/heads/master Commit: dd6755d4781f5246892b4347c070785b8497fc3c Parents: c237ae8 Author: Andrea Cosentino <anco...@gmail.com> Authored: Wed May 10 10:49:00 2017 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Wed May 10 10:49:26 2017 +0200 ---------------------------------------------------------------------- parent/pom.xml | 1 + .../features/src/main/resources/features.xml | 9 ++++++ .../itest/karaf/CamelDigitaloceanTest.java | 34 ++++++++++++++++++++ 3 files changed, 44 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/dd6755d4/parent/pom.xml ---------------------------------------------------------------------- diff --git a/parent/pom.xml b/parent/pom.xml index 2ec2e9c..eb16702 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -167,6 +167,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.9</digitalocean-api-client-version> + <digitalocean-api-client-bundle-version>2.9_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> http://git-wip-us.apache.org/repos/asf/camel/blob/dd6755d4/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 f952ce4..61b570c 100644 --- a/platforms/karaf/features/src/main/resources/features.xml +++ b/platforms/karaf/features/src/main/resources/features.xml @@ -433,6 +433,15 @@ <bundle>mvn:org.apache.camel/camel-cxf-transport/${project.version}</bundle> <bundle>mvn:org.apache.camel/camel-cxf/${project.version}</bundle> </feature> + <feature name='camel-digitalocean' version='${project.version}' resolver='(obr)' start-level='50'> + <feature version='${project.version}'>camel-core</feature> + <bundle dependency='true'>mvn:org.apache.httpcomponents/httpcore-osgi/${httpcore4-version}</bundle> + <bundle dependency='true'>mvn:org.apache.httpcomponents/httpclient-osgi/${httpclient4-version}</bundle> + <bundle dependency='true'>mvn:com.google.code.gson/gson/${gson-version}</bundle> + <bundle dependency='true'>mvn:org.apache.commons/commons-lang3/${commons-lang3-version}</bundle> + <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.digitalocean-api-client/${digitalocean-api-client-bundle-version}</bundle> + <bundle>mvn:org.apache.camel/camel-digitalocean/${project.version}</bundle> + </feature> <feature name='camel-disruptor' version='${project.version}' resolver='(obr)' start-level='50'> <details>The camel-disruptor feature can only run on a SUN JVM. You need to add the package sun.misc to the java platform packages in the etc/jre.properties file.</details> <feature version='${project.version}'>camel-core</feature> http://git-wip-us.apache.org/repos/asf/camel/blob/dd6755d4/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDigitaloceanTest.java ---------------------------------------------------------------------- diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDigitaloceanTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDigitaloceanTest.java new file mode 100644 index 0000000..4884b4e --- /dev/null +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDigitaloceanTest.java @@ -0,0 +1,34 @@ +/** + * 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 CamelDigitaloceanTest extends BaseKarafTest { + + public static final String COMPONENT = extractName(CamelDigitaloceanTest.class); + + @Test + public void test() throws Exception { + testComponent(COMPONENT); + } + + +}