camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-11307: Create Camel-Azure Karaf feature
Date Mon, 22 May 2017 13:44:35 GMT
Repository: camel
Updated Branches:
  refs/heads/master 1ca7a4260 -> fcbda13b0


CAMEL-11307: Create Camel-Azure Karaf feature


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/fcbda13b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fcbda13b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fcbda13b

Branch: refs/heads/master
Commit: fcbda13b04296982d97a3695e0ced3159ffbb508
Parents: 1ca7a42
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Mon May 22 15:41:28 2017 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Mon May 22 15:44:11 2017 +0200

----------------------------------------------------------------------
 parent/pom.xml                                  |  2 ++
 .../features/src/main/resources/features.xml    |  8 +++++
 .../camel/itest/karaf/CamelAzureTest.java       | 34 ++++++++++++++++++++
 3 files changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fcbda13b/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index d662540..5e7755f 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -82,6 +82,8 @@
     <aws-java-sdk-version>1.11.125</aws-java-sdk-version>
     <axiom-version>1.2.14</axiom-version>
     <azure-storage-java-sdk-version>5.0.0</azure-storage-java-sdk-version>
+    <azure-storage-java-sdk-bundle-version>5.0.0_1</azure-storage-java-sdk-bundle-version>
+    <azure-keyvault-core-bundle-version>1.0.0_1</azure-keyvault-core-bundle-version>
     <backport-util-concurrent-version>3.1</backport-util-concurrent-version>
     <bcel-bundle-version>5.2_4</bcel-bundle-version>
     <beanio-version>2.1.0</beanio-version>

http://git-wip-us.apache.org/repos/asf/camel/blob/fcbda13b/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 8a9ab46..4c1dfd2 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -173,6 +173,14 @@
     <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/${aws-java-sdk-bundle-version}</bundle>
     <bundle>mvn:org.apache.camel/camel-aws/${project.version}</bundle>
   </feature>
+  <feature name='camel-azure' version='${project.version}' resolver='(obr)' start-level='50'>
+    <feature version='${project.version}'>camel-azure</feature>
+    <bundle dependency='true'>mvn:com.fasterxml.jackson.core/jackson-core/${jackson2-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.azure-storage/${azure-storage-java-sdk-bundle-version}</bundle>
+    <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.azure-keyvault-core/${azure-keyvault-core-bundle-version}</bundle>
+    <bundle>mvn:org.apache.camel/camel-azure/${project.version}</bundle>
+  </feature>
   <feature name='camel-bam' version='${project.version}' resolver='(obr)' start-level='50'>
     <feature version='${project.version}'>camel-core</feature>
     <feature version='${spring-version-range}'>spring-orm</feature>

http://git-wip-us.apache.org/repos/asf/camel/blob/fcbda13b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAzureTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAzureTest.java
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAzureTest.java
new file mode 100644
index 0000000..ff47dd8
--- /dev/null
+++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAzureTest.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 CamelAzureTest extends BaseKarafTest {
+
+    public static final String COMPONENT = extractName(CamelAzureTest.class);
+
+    @Test
+    public void test() throws Exception {
+        testComponent(COMPONENT, "azure-blob");
+        testComponent(COMPONENT, "azure-queue");
+    }
+
+}


Mime
View raw message