This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 1580be6  #2550 fix several native integration-test failure (#2553)
1580be6 is described below

commit 1580be6d3337a864847d9edbfdc6f788ebbc4c78
Author: Freeman(Yue) Fang <freeman.f...@gmail.com>
AuthorDate: Thu May 6 02:22:22 2021 -0400

    #2550 fix several native integration-test failure (#2553)
    
    * fix file native integration-test #2550
    
    * remove native profile for hbase since it only supports jvm mode
    
    * remove native profile for hbase since it only supports jvm mode #2550
    
    * fix hazelcast integration test #2550
    
    * fix minio native integration-test #2550
    
    * fix license header #2550
---
 extensions-jvm/hbase/integration-test/pom.xml      | 29 ----------------------
 .../hazelcast/deployment/HazelcastProcessor.java   | 12 +++++++++
 .../camel/quarkus/component/file/it/FileTest.java  |  2 +-
 .../src/main/resources/application.properties      | 22 ++++++++++++++++
 4 files changed, 35 insertions(+), 30 deletions(-)

diff --git a/extensions-jvm/hbase/integration-test/pom.xml 
b/extensions-jvm/hbase/integration-test/pom.xml
index 3a5e98c..7ab597c 100644
--- a/extensions-jvm/hbase/integration-test/pom.xml
+++ b/extensions-jvm/hbase/integration-test/pom.xml
@@ -112,33 +112,4 @@
         </dependency>
     </dependencies>
 
-    <profiles>
-        <profile>
-            <id>native</id>
-            <activation>
-                <property>
-                    <name>native</name>
-                </property>
-            </activation>
-            <properties>
-                <quarkus.package.type>native</quarkus.package.type>
-            </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/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
 
b/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
index 9b02753..5b65052 100644
--- 
a/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
+++ 
b/extensions/hazelcast/deployment/src/main/java/org/apache/camel/quarkus/component/hazelcast/deployment/HazelcastProcessor.java
@@ -43,6 +43,7 @@ import io.quarkus.deployment.builditem.FeatureBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
 import 
io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem;
 import 
io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyIgnoreWarningBuildItem;
+import 
io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
 import org.apache.camel.tooling.model.MainModel;
 import org.jboss.jandex.DotName;
 import org.jboss.jandex.Type;
@@ -51,6 +52,10 @@ class HazelcastProcessor {
 
     private static final String FEATURE = "camel-hazelcast";
 
+    private static final String[] RUNTIME_INITIALIZED_CLASSES = new String[] {
+            "com.hazelcast.internal.util.ICMPHelper"
+    };
+
     @BuildStep
     FeatureBuildItem feature() {
         return new FeatureBuildItem(FEATURE);
@@ -110,4 +115,11 @@ class HazelcastProcessor {
         }
     }
 
+    @BuildStep
+    void 
configureRuntimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem>
 runtimeInitializedClass) {
+        for (String className : RUNTIME_INITIALIZED_CLASSES) {
+            runtimeInitializedClass.produce(new 
RuntimeInitializedClassBuildItem(className));
+        }
+    }
+
 }
diff --git 
a/integration-tests/file/src/test/java/org/apache/camel/quarkus/component/file/it/FileTest.java
 
b/integration-tests/file/src/test/java/org/apache/camel/quarkus/component/file/it/FileTest.java
index c937115..c52ade1 100644
--- 
a/integration-tests/file/src/test/java/org/apache/camel/quarkus/component/file/it/FileTest.java
+++ 
b/integration-tests/file/src/test/java/org/apache/camel/quarkus/component/file/it/FileTest.java
@@ -273,7 +273,7 @@ class FileTest {
     private static void awaitEvent(final Path dir, final Path file, final 
String type) {
         await()
                 .pollInterval(10, TimeUnit.MILLISECONDS)
-                .atMost(10, TimeUnit.SECONDS)
+                .atMost(20, TimeUnit.SECONDS)
                 .until(() -> {
                     final ValidatableResponse response = RestAssured.given()
                             .queryParam("path", dir.toString())
diff --git a/integration-tests/minio/src/main/resources/application.properties 
b/integration-tests/minio/src/main/resources/application.properties
new file mode 100644
index 0000000..19082f3
--- /dev/null
+++ b/integration-tests/minio/src/main/resources/application.properties
@@ -0,0 +1,22 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+
+# Ensure the  same locale en_US is used in native as io.minio.Time
+quarkus.native.user-country=US
+quarkus.native.user-language=en
+
+

Reply via email to