You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2021/03/26 10:13:20 UTC
[camel-quarkus] branch master updated (f5a8ad0 -> 7a73435)
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.
from f5a8ad0 Stop CI testing on Java 8 #2287
new 939e4a2 dsl: support for js-dsl
new 73b75b6 Upgrade to cq-maven-plugin 0.32.0
new f1cf812 Disable master test temporarily #2384
new 7a73435 Disable FtpsIT temporarily #2317
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
catalog/pom.xml | 13 ++
docs/modules/ROOT/nav.adoc | 1 +
.../extensions/{yaml-dsl.adoc => js-dsl.adoc} | 10 +-
.../main/resources/META-INF/quarkus-extension.yaml | 1 +
.../js-dsl}/deployment/pom.xml | 8 +-
.../dsl/js/deployment/JavaScriptDslFeature.java | 6 +-
.../dsl/js/deployment/JavaScriptDslProcessor.java | 137 +++++++++++++++++++++
.../xml-io => extensions/js-dsl}/pom.xml | 4 +-
.../js-dsl}/runtime/pom.xml | 18 +--
.../main/resources/META-INF/quarkus-extension.yaml | 8 +-
extensions/pom.xml | 1 +
.../camel/quarkus/component/ftps/it/FtpsIT.java | 4 +
integration-tests/{rest-openapi => js-dsl}/pom.xml | 34 ++---
.../camel/quarkus/js/JavaScriptDslResource.java | 8 +-
.../src/main/resources/application.properties | 2 +-
.../js-dsl/src/main/resources/routes/my-routes.js | 5 +-
.../apache/camel/quarkus/js/JavaScriptDslIT.java} | 5 +-
.../apache/camel/quarkus/js/JavaScriptDslTest.java | 12 +-
.../quarkus/component/master/it/MasterIT.java | 4 +
integration-tests/pom.xml | 1 +
pom.xml | 3 +-
poms/bom/pom.xml | 20 +++
.../quarkus-extension.yaml | 2 +-
tooling/scripts/test-categories.yaml | 2 +-
24 files changed, 250 insertions(+), 59 deletions(-)
copy docs/modules/ROOT/pages/reference/extensions/{yaml-dsl.adoc => js-dsl.adoc} (70%)
copy {extensions-core/yaml-dsl => extensions/js-dsl}/deployment/pom.xml (90%)
copy extensions-core/yaml-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/yaml/deployment/YamlDslProcessor.java => extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslFeature.java (87%)
create mode 100644 extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java
copy {extensions-core/xml-io => extensions/js-dsl}/pom.xml (93%)
copy {extensions-core/xml-io-dsl => extensions/js-dsl}/runtime/pom.xml (88%)
copy {extensions-jvm/apns => extensions/js-dsl}/runtime/src/main/resources/META-INF/quarkus-extension.yaml (87%)
copy integration-tests/{rest-openapi => js-dsl}/pom.xml (86%)
copy extensions-jvm/groovy-dsl/integration-test/src/main/java/org/apache/camel/quarkus/dsl/groovy/GroovyDslResource.java => integration-tests/js-dsl/src/main/java/org/apache/camel/quarkus/js/JavaScriptDslResource.java (90%)
copy {extensions-jvm/java-joor-dsl/integration-test => integration-tests/js-dsl}/src/main/resources/application.properties (93%)
copy extensions-jvm/groovy-dsl/integration-test/src/main/resources/routes/my-routes.groovy => integration-tests/js-dsl/src/main/resources/routes/my-routes.js (93%)
copy integration-tests/{amqp/src/test/java/org/apache/camel/quarkus/component/amqp/it/AmqpIT.java => js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslIT.java} (90%)
copy extensions-jvm/kotlin-dsl/integration-test/src/test/java/org/apache/camel/quarkus/dsl/kotlin/KotlinDslTest.java => integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslTest.java (83%)
[camel-quarkus] 01/04: dsl: support for js-dsl
Posted by pp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 939e4a21eec24ef3c63cfb416d2208d4947d6f75
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Thu Mar 25 18:40:02 2021 +0100
dsl: support for js-dsl
---
catalog/pom.xml | 13 ++
docs/modules/ROOT/nav.adoc | 1 +
.../ROOT/pages/reference/extensions/js-dsl.adoc | 27 ++++
extensions/js-dsl/deployment/pom.xml | 61 +++++++++
.../dsl/js/deployment/JavaScriptDslFeature.java | 30 +++++
.../dsl/js/deployment/JavaScriptDslProcessor.java | 137 +++++++++++++++++++
extensions/js-dsl/pom.xml | 37 ++++++
extensions/js-dsl/runtime/pom.xml | 116 ++++++++++++++++
.../resources/META-INF}/quarkus-extension.yaml | 24 +---
extensions/pom.xml | 1 +
integration-tests/js-dsl/pom.xml | 148 +++++++++++++++++++++
.../camel/quarkus/js/JavaScriptDslResource.java | 60 +++++++++
.../src/main/resources/application.properties | 21 +++
.../js-dsl/src/main/resources/routes/my-routes.js | 20 +++
.../apache/camel/quarkus/js/JavaScriptDslIT.java | 23 ++++
.../apache/camel/quarkus/js/JavaScriptDslTest.java | 49 +++++++
integration-tests/pom.xml | 1 +
pom.xml | 1 +
poms/bom/pom.xml | 20 +++
.../quarkus-extension.yaml | 2 +-
tooling/scripts/test-categories.yaml | 2 +-
21 files changed, 775 insertions(+), 19 deletions(-)
diff --git a/catalog/pom.xml b/catalog/pom.xml
index ef60a64..b0c3fad 100644
--- a/catalog/pom.xml
+++ b/catalog/pom.xml
@@ -2077,6 +2077,19 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jsch</artifactId>
<version>${project.version}</version>
<type>pom</type>
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 7003859..246758a 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -173,6 +173,7 @@
*** xref:reference/extensions/jacksonxml.adoc[JacksonXML]
*** xref:reference/extensions/jasypt.adoc[Jasypt]
*** xref:reference/extensions/java-joor-dsl.adoc[Java jOOR DSL]
+*** xref:reference/extensions/js-dsl.adoc[JavaScript DSL]
*** xref:reference/extensions/jfr.adoc[Jfr]
*** xref:reference/extensions/jing.adoc[Jing]
*** xref:reference/extensions/jira.adoc[Jira]
diff --git a/docs/modules/ROOT/pages/reference/extensions/js-dsl.adoc b/docs/modules/ROOT/pages/reference/extensions/js-dsl.adoc
new file mode 100644
index 0000000..11f8057
--- /dev/null
+++ b/docs/modules/ROOT/pages/reference/extensions/js-dsl.adoc
@@ -0,0 +1,27 @@
+// Do not edit directly!
+// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
+= JavaScript DSL
+:cq-artifact-id: camel-quarkus-js-dsl
+:cq-native-supported: true
+:cq-status: Stable
+:cq-description: An JavaScript stack for parsing JavaScript route definitions
+:cq-deprecated: false
+:cq-jvm-since: 1.8.0
+:cq-native-since: 1.8.0
+
+[.badges]
+[.badge-key]##JVM since##[.badge-supported]##1.8.0## [.badge-key]##Native since##[.badge-supported]##1.8.0##
+
+An JavaScript stack for parsing JavaScript route definitions
+
+== Maven coordinates
+
+[source,xml]
+----
+<dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl</artifactId>
+</dependency>
+----
+
+Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
diff --git a/extensions/js-dsl/deployment/pom.xml b/extensions/js-dsl/deployment/pom.xml
new file mode 100644
index 0000000..cbb7827
--- /dev/null
+++ b/extensions/js-dsl/deployment/pom.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl-parent</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-js-dsl-deployment</artifactId>
+ <name>Camel Quarkus :: JavaScript DSL DSL :: Deployment</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-core-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-extension-processor</artifactId>
+ <version>${quarkus.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslFeature.java b/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslFeature.java
new file mode 100644
index 0000000..bd14ef1
--- /dev/null
+++ b/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslFeature.java
@@ -0,0 +1,30 @@
+/*
+ * 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.quarkus.dsl.js.deployment;
+
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+
+public class JavaScriptDslFeature {
+ private static final String FEATURE = "camel-js-dsl";
+
+ @BuildStep
+ FeatureBuildItem feature() {
+ return new FeatureBuildItem(FEATURE);
+ }
+}
diff --git a/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java b/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java
new file mode 100644
index 0000000..f2f9973
--- /dev/null
+++ b/extensions/js-dsl/deployment/src/main/java/org/apache/camel/quarkus/dsl/js/deployment/JavaScriptDslProcessor.java
@@ -0,0 +1,137 @@
+/*
+ * 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.quarkus.dsl.js.deployment;
+
+import java.time.Duration;
+import java.time.Instant;
+import java.time.temporal.Temporal;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
+import java.util.TreeSet;
+
+import io.quarkus.arc.Components;
+import io.quarkus.deployment.annotations.BuildProducer;
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
+import org.apache.camel.Exchange;
+import org.apache.camel.NamedNode;
+import org.apache.camel.builder.DataFormatClause;
+import org.apache.camel.builder.ExpressionClause;
+import org.apache.camel.dsl.js.JavaScriptDSL;
+import org.apache.camel.model.Block;
+import org.apache.camel.model.FromDefinition;
+import org.apache.camel.model.NoOutputDefinition;
+import org.apache.camel.model.OptionalIdentifiedDefinition;
+import org.apache.camel.model.ProcessDefinition;
+import org.apache.camel.model.ProcessorDefinition;
+import org.apache.camel.model.RouteDefinition;
+import org.apache.camel.model.ToDefinition;
+import org.apache.camel.model.dataformat.JsonLibrary;
+import org.apache.camel.model.language.ExpressionDefinition;
+import org.apache.camel.model.rest.RestSecurityDefinition;
+import org.apache.camel.model.transformer.TransformerDefinition;
+import org.apache.camel.model.validator.ValidatorDefinition;
+import org.apache.camel.spi.ExchangeFormatter;
+import org.apache.camel.spi.NamespaceAware;
+import org.jboss.jandex.ClassInfo;
+import org.jboss.jandex.DotName;
+import org.jboss.jandex.IndexView;
+
+public class JavaScriptDslProcessor {
+ private static final List<Class<?>> JAVA_CLASSES = Arrays.asList(
+ Character.class,
+ Byte.class,
+ CharSequence.class, String.class,
+ Number.class,
+ Integer.class,
+ Long.class,
+ Float.class,
+ Double.class,
+ // Time
+ Date.class,
+ Temporal.class,
+ Instant.class,
+ Duration.class,
+ // Containers
+ Map.class, HashMap.class, TreeMap.class,
+ List.class, ArrayList.class, LinkedList.class,
+ Set.class, HashSet.class, TreeSet.class);
+
+ private static final List<Class<?>> CAMEL_REFLECTIVE_CLASSES = Arrays.asList(
+ ExchangeFormatter.class,
+ RouteDefinition.class,
+ ProcessorDefinition.class,
+ DataFormatClause.class,
+ FromDefinition.class,
+ ToDefinition.class,
+ ExpressionDefinition.class,
+ ProcessDefinition.class,
+ ExpressionDefinition.class,
+ ExpressionClause.class,
+ Exchange.class,
+ JsonLibrary.class,
+ NamedNode.class,
+ OptionalIdentifiedDefinition.class,
+ NamespaceAware.class,
+ Block.class,
+ RestSecurityDefinition.class,
+ ValidatorDefinition.class,
+ TransformerDefinition.class,
+ NoOutputDefinition.class);
+
+ @BuildStep
+ void registerReflectiveClasses(
+ BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
+ CombinedIndexBuildItem combinedIndexBuildItem) {
+
+ IndexView view = combinedIndexBuildItem.getIndex();
+
+ for (Class<?> type : CAMEL_REFLECTIVE_CLASSES) {
+ DotName name = DotName.createSimple(type.getName());
+
+ if (type.isInterface()) {
+ for (ClassInfo info : view.getAllKnownImplementors(name)) {
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, info.name().toString()));
+ }
+ } else {
+ for (ClassInfo info : view.getAllKnownSubclasses(name)) {
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, info.name().toString()));
+ }
+ }
+
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, type.isEnum(), type));
+ }
+
+ for (Class<?> type : JAVA_CLASSES) {
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, type));
+ }
+
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, Components.class));
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, JavaScriptDSL.class));
+ reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, "org.apache.camel.converter.jaxp.XmlConverter"));
+ }
+}
diff --git a/extensions/js-dsl/pom.xml b/extensions/js-dsl/pom.xml
new file mode 100644
index 0000000..2546724
--- /dev/null
+++ b/extensions/js-dsl/pom.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-build-parent</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <relativePath>../../poms/build-parent/pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-js-dsl-parent</artifactId>
+ <name>Camel Quarkus :: JavaScript DSL</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>deployment</module>
+ <module>runtime</module>
+ </modules>
+</project>
diff --git a/extensions/js-dsl/runtime/pom.xml b/extensions/js-dsl/runtime/pom.xml
new file mode 100644
index 0000000..a3fb5c9
--- /dev/null
+++ b/extensions/js-dsl/runtime/pom.xml
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl-parent</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-js-dsl</artifactId>
+ <name>Camel Quarkus :: JavaScript DSL :: Runtime</name>
+ <description>An JavaScript stack for parsing JavaScript route definitions</description>
+
+ <properties>
+ <camel.quarkus.jvmSince>1.8.0</camel.quarkus.jvmSince>
+ <camel.quarkus.nativeSince>1.8.0</camel.quarkus.nativeSince>
+ <quarkus.metadata.unlisted>true</quarkus.metadata.unlisted>
+ <quarkus.metadata.status>experimental</quarkus.metadata.status>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-bom</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-js-dsl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.graalvm.js</groupId>
+ <artifactId>js</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-bootstrap-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-extension-processor</artifactId>
+ <version>${quarkus.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>full</id>
+ <activation>
+ <property>
+ <name>!quickly</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>update-extension-doc-page</id>
+ <goals>
+ <goal>update-extension-doc-page</goal>
+ </goals>
+ <phase>process-classes</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
diff --git a/tooling/create-extension-templates/quarkus-extension.yaml b/extensions/js-dsl/runtime/src/main/resources/META-INF/quarkus-extension.yaml
similarity index 71%
copy from tooling/create-extension-templates/quarkus-extension.yaml
copy to extensions/js-dsl/runtime/src/main/resources/META-INF/quarkus-extension.yaml
index 8ed1e51..fae1ef2 100644
--- a/tooling/create-extension-templates/quarkus-extension.yaml
+++ b/extensions/js-dsl/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -21,22 +21,12 @@
# mvn -N cq:update-quarkus-metadata
#
---
-name: "Camel [=nameBase]"
-description: "[=description]"
+name: "Camel JavaScript DSL"
+description: "An JavaScript stack for parsing JavaScript route definitions"
metadata:
-[#if !nativeSupported ] unlisted: true
-[/#if]
-[#if keywords?size > 0 ] keywords:
-[#list keywords as keyword]
- - "[=keyword]"
-[/#list]
-[/#if]
- guide: "[=guideUrl]"
-[#if categories?size > 0 ] categories:
-[#list categories as category]
- - "[=category]"
-[/#list]
-[/#if]
+ unlisted: true
+ guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/js-dsl.html"
+ categories:
+ - "integration"
status:
- - "[=status]"
-[#if deprecated ] - "deprecated"[/#if]
\ No newline at end of file
+ - "experimental"
diff --git a/extensions/pom.xml b/extensions/pom.xml
index f2f6b9e..815fd00 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -135,6 +135,7 @@
<module>johnzon</module>
<module>jolt</module>
<module>jpa</module>
+ <module>js-dsl</module>
<module>jsch</module>
<module>jslt</module>
<module>json-validator</module>
diff --git a/integration-tests/js-dsl/pom.xml b/integration-tests/js-dsl/pom.xml
new file mode 100644
index 0000000..6f4ebfc
--- /dev/null
+++ b/integration-tests/js-dsl/pom.xml
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-integration-tests</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>camel-quarkus-integration-test-js-dsl</artifactId>
+ <name>Camel Quarkus :: Integration Tests ::JavaScript DSL :: Tests</name>
+ <description>The camel integration tests</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-main</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-direct</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-jsonb</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-resteasy-jsonb</artifactId>
+ </dependency>
+
+ <!-- test dependencies -->
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.rest-assured</groupId>
+ <artifactId>rest-assured</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.assertj</groupId>
+ <artifactId>assertj-core</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory -->
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-direct-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-main-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ </dependencies>
+
+
+ <profiles>
+ <profile>
+ <id>native</id>
+ <activation>
+ <property>
+ <name>native</name>
+ </property>
+ </activation>
+ <properties>
+ <quarkus.package.type>native</quarkus.package.type>
+ <quarkus.native.additional-build-args>--language:js</quarkus.native.additional-build-args>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+
+</project>
diff --git a/integration-tests/js-dsl/src/main/java/org/apache/camel/quarkus/js/JavaScriptDslResource.java b/integration-tests/js-dsl/src/main/java/org/apache/camel/quarkus/js/JavaScriptDslResource.java
new file mode 100644
index 0000000..4e4d6de
--- /dev/null
+++ b/integration-tests/js-dsl/src/main/java/org/apache/camel/quarkus/js/JavaScriptDslResource.java
@@ -0,0 +1,60 @@
+/*
+ * 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.quarkus.js;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+import javax.json.Json;
+import javax.json.JsonArrayBuilder;
+import javax.json.JsonObject;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+
+import org.apache.camel.ExtendedCamelContext;
+import org.apache.camel.dsl.js.JavaScriptRoutesBuilderLoader;
+import org.apache.camel.quarkus.main.CamelMain;
+import org.apache.camel.spi.RoutesBuilderLoader;
+
+@Path("/test")
+@ApplicationScoped
+public class JavaScriptDslResource {
+ @Inject
+ CamelMain main;
+
+ @Path("/main/describe")
+ @GET
+ @Produces(MediaType.APPLICATION_JSON)
+ public JsonObject describeMain() {
+ final ExtendedCamelContext camelContext = main.getCamelContext().adapt(ExtendedCamelContext.class);
+
+ JsonArrayBuilder routeBuilders = Json.createArrayBuilder();
+ main.configure().getRoutesBuilders().forEach(builder -> routeBuilders.add(builder.getClass().getName()));
+
+ JsonArrayBuilder routes = Json.createArrayBuilder();
+ main.getCamelContext().getRoutes().forEach(route -> routes.add(route.getId()));
+
+ return Json.createObjectBuilder()
+ .add("routes-builder-loader",
+ camelContext.getBootstrapFactoryFinder(RoutesBuilderLoader.FACTORY_PATH)
+ .findClass(JavaScriptRoutesBuilderLoader.EXTENSION).get().getName())
+ .add("routeBuilders", routeBuilders)
+ .add("routes", routes)
+ .build();
+ }
+}
diff --git a/integration-tests/js-dsl/src/main/resources/application.properties b/integration-tests/js-dsl/src/main/resources/application.properties
new file mode 100644
index 0000000..1b6e231
--- /dev/null
+++ b/integration-tests/js-dsl/src/main/resources/application.properties
@@ -0,0 +1,21 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+
+#
+# Main
+#
+camel.main.routes-include-pattern = classpath:routes/my-routes.js
diff --git a/integration-tests/js-dsl/src/main/resources/routes/my-routes.js b/integration-tests/js-dsl/src/main/resources/routes/my-routes.js
new file mode 100644
index 0000000..7781341
--- /dev/null
+++ b/integration-tests/js-dsl/src/main/resources/routes/my-routes.js
@@ -0,0 +1,20 @@
+/*
+ * 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.
+ */
+
+from('direct:start')
+ .id('my-js-route')
+ .log('Hello JavaScript !!!')
\ No newline at end of file
diff --git a/integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslIT.java b/integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslIT.java
new file mode 100644
index 0000000..06f73dd
--- /dev/null
+++ b/integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslIT.java
@@ -0,0 +1,23 @@
+/*
+ * 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.quarkus.js;
+
+import io.quarkus.test.junit.NativeImageTest;
+
+@NativeImageTest
+public class JavaScriptDslIT extends JavaScriptDslTest {
+}
diff --git a/integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslTest.java b/integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslTest.java
new file mode 100644
index 0000000..a2e1303
--- /dev/null
+++ b/integration-tests/js-dsl/src/test/java/org/apache/camel/quarkus/js/JavaScriptDslTest.java
@@ -0,0 +1,49 @@
+/*
+ * 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.quarkus.js;
+
+import javax.ws.rs.core.MediaType;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import io.restassured.path.json.JsonPath;
+import org.apache.camel.dsl.js.JavaScriptRoutesBuilderLoader;
+import org.junit.jupiter.api.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+@QuarkusTest
+public class JavaScriptDslTest {
+ @Test
+ public void testJavaScriptRoutes() {
+ JsonPath p = RestAssured.given()
+ .accept(MediaType.APPLICATION_JSON)
+ .get("/test/main/describe")
+ .then()
+ .statusCode(200)
+ .extract()
+ .body()
+ .jsonPath();
+
+ assertThat(p.getString("routes-builder-loader"))
+ .isEqualTo(JavaScriptRoutesBuilderLoader.class.getName());
+ assertThat(p.getList("routeBuilders", String.class))
+ .isEmpty();
+ assertThat(p.getList("routes", String.class))
+ .contains("my-js-route");
+ }
+}
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 8c61f35..48881c9 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -128,6 +128,7 @@
<module>jira</module>
<module>jolt</module>
<module>jpa</module>
+ <module>js-dsl</module>
<module>jsch</module>
<module>jslt</module>
<module>json-validator</module>
diff --git a/pom.xml b/pom.xml
index 30fc757..83954a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,6 +69,7 @@
<google-http-client.version>1.34.0</google-http-client.version>
<google-auth-library-oauth2-http.version>0.21.1</google-auth-library-oauth2-http.version> <!-- Mess in google-cloud-bom -->
<guava.version>29.0-jre</guava.version>
+ <graaljs.version>${graaljs-version}</graaljs.version> <!-- keep in sync with quarkus ? -->
<gson.version>2.8.6</gson.version><!-- JSONata -->
<hadoop2.version>${hadoop2-version}</hadoop2.version><!-- Spark -->
<hapi.version>${hapi-version}</hapi.version>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index cbefde3..bec417e 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -1257,6 +1257,11 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-js-dsl</artifactId>
+ <version>${camel.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-jsch</artifactId>
<version>${camel.version}</version>
</dependency>
@@ -3707,6 +3712,16 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl</artifactId>
+ <version>${camel-quarkus.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-js-dsl-deployment</artifactId>
+ <version>${camel-quarkus.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jsch</artifactId>
<version>${camel-quarkus.version}</version>
</dependency>
@@ -5917,6 +5932,11 @@
<version>${stax2.version}</version>
</dependency>
<dependency>
+ <groupId>org.graalvm.js</groupId>
+ <artifactId>js</artifactId>
+ <version>${graaljs.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.influxdb</groupId>
<artifactId>influxdb-java</artifactId>
<version>${influxdb.version}</version>
diff --git a/tooling/create-extension-templates/quarkus-extension.yaml b/tooling/create-extension-templates/quarkus-extension.yaml
index 8ed1e51..cea4543 100644
--- a/tooling/create-extension-templates/quarkus-extension.yaml
+++ b/tooling/create-extension-templates/quarkus-extension.yaml
@@ -24,7 +24,7 @@
name: "Camel [=nameBase]"
description: "[=description]"
metadata:
-[#if !nativeSupported ] unlisted: true
+[#if unlisted ] unlisted: true
[/#if]
[#if keywords?size > 0 ] keywords:
[#list keywords as keyword]
diff --git a/tooling/scripts/test-categories.yaml b/tooling/scripts/test-categories.yaml
index 5071ea0..7e43a0e 100644
--- a/tooling/scripts/test-categories.yaml
+++ b/tooling/scripts/test-categories.yaml
@@ -150,7 +150,6 @@ misc:
- as2
- kotlin
- disruptor
-networking2-dataformats-main:
- atlasmap
- mail
- main-unknown-args-fail
@@ -186,3 +185,4 @@ saas:
- servicenow
- slack
- twilio
+ - js-dsl
[camel-quarkus] 02/04: Upgrade to cq-maven-plugin 0.32.0
Posted by pp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 73b75b6e27064319a69ba30ec7c40bd605043c46
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Fri Mar 26 09:07:22 2021 +0100
Upgrade to cq-maven-plugin 0.32.0
---
.../runtime/src/main/resources/META-INF/quarkus-extension.yaml | 1 +
pom.xml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/extensions-core/core-cloud/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions-core/core-cloud/runtime/src/main/resources/META-INF/quarkus-extension.yaml
index a41745f..511d65a 100644
--- a/extensions-core/core-cloud/runtime/src/main/resources/META-INF/quarkus-extension.yaml
+++ b/extensions-core/core-cloud/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -24,6 +24,7 @@
name: "Camel Cloud"
description: "The Camel Quarkus core cloud module"
metadata:
+ unlisted: true
guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/core-cloud.html"
categories:
- "integration"
diff --git a/pom.xml b/pom.xml
index 83954a8..7402f46 100644
--- a/pom.xml
+++ b/pom.xml
@@ -140,7 +140,7 @@
<zt-exec.version>1.11</zt-exec.version>
<!-- Maven plugin versions (keep sorted alphabetically) -->
- <cq-plugin.version>0.31.0</cq-plugin.version>
+ <cq-plugin.version>0.32.0</cq-plugin.version>
<build-helper-maven-plugin.version>3.1.0</build-helper-maven-plugin.version>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
<formatter-maven-plugin.version>2.11.0</formatter-maven-plugin.version>
[camel-quarkus] 03/04: Disable master test temporarily #2384
Posted by pp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit f1cf81296e2495aec4b2d1a636e2e99a165b0395
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Mar 26 10:48:10 2021 +0100
Disable master test temporarily #2384
---
.../java/org/apache/camel/quarkus/component/master/it/MasterIT.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/integration-tests/master/src/test/java/org/apache/camel/quarkus/component/master/it/MasterIT.java b/integration-tests/master/src/test/java/org/apache/camel/quarkus/component/master/it/MasterIT.java
index e734a28..7df5c8e 100644
--- a/integration-tests/master/src/test/java/org/apache/camel/quarkus/component/master/it/MasterIT.java
+++ b/integration-tests/master/src/test/java/org/apache/camel/quarkus/component/master/it/MasterIT.java
@@ -16,9 +16,13 @@
*/
package org.apache.camel.quarkus.component.master.it;
+import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
+
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
+// https://github.com/apache/camel-quarkus/issues/2384
+@DisabledIfEnvironmentVariable(named = "CI", matches = "true")
class MasterIT extends MasterTest {
}
[camel-quarkus] 04/04: Disable FtpsIT temporarily #2317
Posted by pp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 7a734356be7f679aef50148db0a7a29828ce45b7
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Mar 26 10:48:41 2021 +0100
Disable FtpsIT temporarily #2317
---
.../test/java/org/apache/camel/quarkus/component/ftps/it/FtpsIT.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/ftps/it/FtpsIT.java b/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/ftps/it/FtpsIT.java
index f3ea7ef..4fd785a 100644
--- a/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/ftps/it/FtpsIT.java
+++ b/integration-tests/ftp/src/test/java/org/apache/camel/quarkus/component/ftps/it/FtpsIT.java
@@ -16,9 +16,13 @@
*/
package org.apache.camel.quarkus.component.ftps.it;
+import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
+
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
+// https://github.com/apache/camel-quarkus/issues/2317
+@DisabledIfEnvironmentVariable(named = "CI", matches = "true")
class FtpsIT extends FtpsTest {
}