You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2024/03/21 09:29:34 UTC

(camel-quarkus) branch camel-main updated (4f635477c3 -> 3c59af5d4f)

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

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


    from 4f635477c3 Generated files
     new adc5a6c2f8 Revert "Disabled tests using mongodb, see #5895"
     new 3c59af5d4f Changes required by new Kind.bean from catalog + generated files

The 2 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/quarkus/QuarkusRuntimeProvider.java    | 21 +++++++++++++++++++++
 .../catalog/BuildTimeJsonSchemaResolver.java       |  5 +++++
 .../mongodb/gridfs/it/MongodbGridfsTest.java       |  2 --
 .../src/main/resources/application.properties      |  1 -
 .../quarkus/component/mongodb/it/MongoDbTest.java  |  2 --
 integration-tests/debezium/pom.xml                 |  2 --
 .../common/it/mongodb/DebeziumMongodbTest.java     |  2 --
 integration-tests/mongodb-grouped/pom.xml          |  2 --
 integration-tests/slack/pom.xml                    |  2 --
 poms/bom/src/main/generated/flattened-full-pom.xml |  2 +-
 .../src/main/generated/flattened-reduced-pom.xml   |  2 +-
 .../generated/flattened-reduced-verbose-pom.xml    |  2 +-
 .../org/apache/camel/quarkus/maven/CqCatalog.java  | 22 +++++++++++++++++++++-
 13 files changed, 50 insertions(+), 17 deletions(-)
 delete mode 100644 integration-test-groups/mongodb/mongodb/src/main/resources/application.properties


(camel-quarkus) 01/02: Revert "Disabled tests using mongodb, see #5895"

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit adc5a6c2f84d4a3f83efdb063db2b399b991bff0
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Thu Mar 21 09:04:58 2024 +0100

    Revert "Disabled tests using mongodb, see #5895"
    
    This reverts commit 6b4738713e210ee40684b10bf78471895816e373.
---
 .../camel/quarkus/component/mongodb/gridfs/it/MongodbGridfsTest.java    | 2 --
 .../mongodb/mongodb/src/main/resources/application.properties           | 1 -
 .../java/org/apache/camel/quarkus/component/mongodb/it/MongoDbTest.java | 2 --
 integration-tests/debezium/pom.xml                                      | 2 --
 .../component/debezium/common/it/mongodb/DebeziumMongodbTest.java       | 2 --
 integration-tests/mongodb-grouped/pom.xml                               | 2 --
 integration-tests/slack/pom.xml                                         | 2 --
 7 files changed, 13 deletions(-)

diff --git a/integration-test-groups/mongodb/mongodb-gridfs/src/test/java/org/apache/camel/quarkus/component/mongodb/gridfs/it/MongodbGridfsTest.java b/integration-test-groups/mongodb/mongodb-gridfs/src/test/java/org/apache/camel/quarkus/component/mongodb/gridfs/it/MongodbGridfsTest.java
index b70e70ad3f..566bc3f439 100644
--- a/integration-test-groups/mongodb/mongodb-gridfs/src/test/java/org/apache/camel/quarkus/component/mongodb/gridfs/it/MongodbGridfsTest.java
+++ b/integration-test-groups/mongodb/mongodb-gridfs/src/test/java/org/apache/camel/quarkus/component/mongodb/gridfs/it/MongodbGridfsTest.java
@@ -22,7 +22,6 @@ import io.restassured.RestAssured;
 import io.restassured.http.ContentType;
 import org.apache.camel.quarkus.test.support.mongodb.MongoDbTestResource;
 import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ValueSource;
 
@@ -30,7 +29,6 @@ import static org.hamcrest.Matchers.is;
 
 @QuarkusTest
 @QuarkusTestResource(MongoDbTestResource.class)
-@Disabled //https://github.com/apache/camel-quarkus/issues/5895
 class MongodbGridfsTest {
 
     @ParameterizedTest
diff --git a/integration-test-groups/mongodb/mongodb/src/main/resources/application.properties b/integration-test-groups/mongodb/mongodb/src/main/resources/application.properties
deleted file mode 100644
index 4ade596a41..0000000000
--- a/integration-test-groups/mongodb/mongodb/src/main/resources/application.properties
+++ /dev/null
@@ -1 +0,0 @@
-mongodb.container.image = docker.io/mongo:4.4
\ No newline at end of file
diff --git a/integration-test-groups/mongodb/mongodb/src/test/java/org/apache/camel/quarkus/component/mongodb/it/MongoDbTest.java b/integration-test-groups/mongodb/mongodb/src/test/java/org/apache/camel/quarkus/component/mongodb/it/MongoDbTest.java
index 4287ba0132..3dbc48b506 100644
--- a/integration-test-groups/mongodb/mongodb/src/test/java/org/apache/camel/quarkus/component/mongodb/it/MongoDbTest.java
+++ b/integration-test-groups/mongodb/mongodb/src/test/java/org/apache/camel/quarkus/component/mongodb/it/MongoDbTest.java
@@ -39,7 +39,6 @@ import org.eclipse.microprofile.config.ConfigProvider;
 import org.jboss.logging.Logger;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ValueSource;
@@ -53,7 +52,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 @QuarkusTest
 @QuarkusTestResource(MongoDbTestResource.class)
-@Disabled //https://github.com/apache/camel-quarkus/issues/5895
 class MongoDbTest {
     private static final Logger LOG = Logger.getLogger(MongoDbTest.class);
 
diff --git a/integration-tests/debezium/pom.xml b/integration-tests/debezium/pom.xml
index 6b9896054a..271fd61e45 100644
--- a/integration-tests/debezium/pom.xml
+++ b/integration-tests/debezium/pom.xml
@@ -128,7 +128,6 @@
 
 
     <profiles>
-        <!-- //https://github.com/apache/camel-quarkus/issues/5895
         <profile>
             <id>native</id>
             <activation>
@@ -156,7 +155,6 @@
                 </plugins>
             </build>
         </profile>
-        -->
         <profile>
             <id>mysqlDriver</id>
             <activation>
diff --git a/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/mongodb/DebeziumMongodbTest.java b/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/mongodb/DebeziumMongodbTest.java
index 3531abf91e..04a8474208 100644
--- a/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/mongodb/DebeziumMongodbTest.java
+++ b/integration-tests/debezium/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/mongodb/DebeziumMongodbTest.java
@@ -35,7 +35,6 @@ import org.eclipse.microprofile.config.ConfigProvider;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.MethodOrderer;
 import org.junit.jupiter.api.Order;
 import org.junit.jupiter.api.Test;
@@ -51,7 +50,6 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
 @QuarkusTest
 @QuarkusTestResource(DebeziumMongodbTestResource.class)
 @TestMethodOrder(MethodOrderer.OrderAnnotation.class)
-@Disabled //https://github.com/apache/camel-quarkus/issues/5895
 class DebeziumMongodbTest extends AbstractDebeziumTest {
     private static MongoClient mongoClient;
 
diff --git a/integration-tests/mongodb-grouped/pom.xml b/integration-tests/mongodb-grouped/pom.xml
index 8ceae670af..f8b7ab54d8 100644
--- a/integration-tests/mongodb-grouped/pom.xml
+++ b/integration-tests/mongodb-grouped/pom.xml
@@ -103,7 +103,6 @@
     </build>
 
     <profiles>
-        <!-- //https://github.com/apache/camel-quarkus/issues/5895
         <profile>
             <id>native</id>
             <activation>
@@ -131,7 +130,6 @@
                 </plugins>
             </build>
         </profile>
-        -->
         <profile>
             <id>virtualDependencies</id>
             <activation>
diff --git a/integration-tests/slack/pom.xml b/integration-tests/slack/pom.xml
index 4af557c7a0..56e1b304da 100644
--- a/integration-tests/slack/pom.xml
+++ b/integration-tests/slack/pom.xml
@@ -32,12 +32,10 @@
 
     <dependencies>
         <!-- Mongo dependency exists as a test for https://github.com/apache/camel-quarkus/issues/2489 -->
-        <!-- //https://github.com/apache/camel-quarkus/issues/5895
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-mongodb</artifactId>
         </dependency>
-        -->
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-slack</artifactId>


(camel-quarkus) 02/02: Changes required by new Kind.bean from catalog + generated files

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3c59af5d4fa7b6ba0cec05e99a868ee00e9b8d29
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Thu Mar 21 09:53:23 2024 +0100

    Changes required by new Kind.bean from catalog + generated files
---
 .../catalog/quarkus/QuarkusRuntimeProvider.java    | 21 +++++++++++++++++++++
 .../catalog/BuildTimeJsonSchemaResolver.java       |  5 +++++
 poms/bom/src/main/generated/flattened-full-pom.xml |  2 +-
 .../src/main/generated/flattened-reduced-pom.xml   |  2 +-
 .../generated/flattened-reduced-verbose-pom.xml    |  2 +-
 .../org/apache/camel/quarkus/maven/CqCatalog.java  | 22 +++++++++++++++++++++-
 6 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java b/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java
index 617725bce2..8d06a0bb20 100644
--- a/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java
+++ b/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java
@@ -41,6 +41,7 @@ public class QuarkusRuntimeProvider implements RuntimeProvider {
     private static final String LANGUAGE_DIR = "org/apache/camel/catalog/quarkus/languages";
     private static final String TRANSFORMER_DIR = "org/apache/camel/catalog/quarkus/transformers";
     private static final String OTHER_DIR = "org/apache/camel/catalog/quarkus/others";
+    private static final String BEANS_DIR = "org/apache/camel/catalog/beans";
     private static final String CAPABILITIES_CATALOG = "org/apache/camel/catalog/quarkus/capabilities.properties";
     private static final String COMPONENTS_CATALOG = "org/apache/camel/catalog/quarkus/components.properties";
     private static final String DEV_CONSOLE_CATALOG = "org/apache/camel/catalog/quarkus/consoles.properties";
@@ -48,6 +49,7 @@ public class QuarkusRuntimeProvider implements RuntimeProvider {
     private static final String LANGUAGE_CATALOG = "org/apache/camel/catalog/quarkus/languages.properties";
     private static final String TRANSFORMER_CATALOG = "org/apache/camel/catalog/quarkus/transformers.properties";
     private static final String OTHER_CATALOG = "org/apache/camel/catalog/quarkus/others.properties";
+    private static final String BEANS_CATALOG = "org/apache/camel/catalog/quarkus/beans.properties";
 
     private CamelCatalog camelCatalog;
 
@@ -106,6 +108,11 @@ public class QuarkusRuntimeProvider implements RuntimeProvider {
         return OTHER_DIR;
     }
 
+    @Override
+    public String getPojoBeanJSonSchemaDirectory() {
+        return BEANS_DIR;
+    }
+
     @Override
     public List<String> findComponentNames() {
         List<String> names = new ArrayList<>();
@@ -190,6 +197,20 @@ public class QuarkusRuntimeProvider implements RuntimeProvider {
         return names;
     }
 
+    @Override
+    public List<String> findBeansNames() {
+        List<String> names = new ArrayList<>();
+        InputStream is = camelCatalog.getVersionManager().getResourceAsStream(BEANS_CATALOG);
+        if (is != null) {
+            try {
+                CatalogHelper.loadLines(is, names);
+            } catch (IOException e) {
+                // ignore
+            }
+        }
+        return names;
+    }
+
     @SuppressWarnings({ "unchecked", "rawtypes" })
     @Override
     public Map<String, String> findCapabilities() {
diff --git a/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/catalog/BuildTimeJsonSchemaResolver.java b/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/catalog/BuildTimeJsonSchemaResolver.java
index 0da3f16b3a..2aaa7012a4 100644
--- a/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/catalog/BuildTimeJsonSchemaResolver.java
+++ b/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/catalog/BuildTimeJsonSchemaResolver.java
@@ -74,6 +74,11 @@ public class BuildTimeJsonSchemaResolver implements JSonSchemaResolver {
         throw new UnsupportedOperationException("Main JSON schema resolution is not supported");
     }
 
+    @Override
+    public String getPojoBeanJSonSchema(String name) {
+        throw new UnsupportedOperationException("Pojo bean JSON schema resolution is not supported");
+    }
+
     public Set<SchemaResource> getSchemaResources() {
         return schemaResources;
     }
diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml b/poms/bom/src/main/generated/flattened-full-pom.xml
index 5351c4fdab..d446aad341 100644
--- a/poms/bom/src/main/generated/flattened-full-pom.xml
+++ b/poms/bom/src/main/generated/flattened-full-pom.xml
@@ -6637,7 +6637,7 @@
       <dependency>
         <groupId>org.apache.pdfbox</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
         <artifactId>fontbox</artifactId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
-        <version>3.0.1</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+        <version>3.0.2</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
         <exclusions>
           <exclusion>
             <groupId>commons-logging</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml b/poms/bom/src/main/generated/flattened-reduced-pom.xml
index e72b3bff58..888ae123fb 100644
--- a/poms/bom/src/main/generated/flattened-reduced-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml
@@ -6582,7 +6582,7 @@
       <dependency>
         <groupId>org.apache.pdfbox</groupId>
         <artifactId>fontbox</artifactId>
-        <version>3.0.1</version>
+        <version>3.0.2</version>
         <exclusions>
           <exclusion>
             <groupId>commons-logging</groupId>
diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
index 860d4ec9a7..1ec6ef8c90 100644
--- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
@@ -6582,7 +6582,7 @@
       <dependency>
         <groupId>org.apache.pdfbox</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
         <artifactId>fontbox</artifactId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
-        <version>3.0.1</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+        <version>3.0.2</version><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
         <exclusions>
           <exclusion>
             <groupId>commons-logging</groupId><!-- org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
diff --git a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java
index b99edc310d..8a0e548e41 100644
--- a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java
+++ b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqCatalog.java
@@ -224,7 +224,7 @@ public class CqCatalog {
 
     public static Stream<Kind> kinds() {
         return Stream.of(Kind.values())
-                .filter(kind -> (kind != Kind.eip && kind != Kind.model));
+                .filter(kind -> (kind != Kind.eip && kind != Kind.model && kind != Kind.bean));
     }
 
     public static boolean isFirstScheme(ArtifactModel<?> model) {
@@ -334,6 +334,7 @@ public class CqCatalog {
         private static final String LANGUAGE_DIR = CQ_CATALOG_DIR + "/languages";
         private static final String TRANSFORMER_DIR = CQ_CATALOG_DIR + "/transformers";
         private static final String OTHER_DIR = CQ_CATALOG_DIR + "/others";
+        private static final String BEANS_DIR = CQ_CATALOG_DIR + "/beans";
         private static final String COMPONENTS_CATALOG = CQ_CATALOG_DIR + "/components.properties";
         private static final String DATA_FORMATS_CATALOG = CQ_CATALOG_DIR + "/dataformats.properties";
         private static final String DEV_CONSOLE_CATALOG = CQ_CATALOG_DIR + "/consoles.properties";
@@ -403,6 +404,11 @@ public class CqCatalog {
             return OTHER_DIR;
         }
 
+        @Override
+        public String getPojoBeanJSonSchemaDirectory() {
+            return BEANS_DIR;
+        }
+
         protected String getComponentsCatalog() {
             return COMPONENTS_CATALOG;
         }
@@ -515,6 +521,20 @@ public class CqCatalog {
             return names;
         }
 
+        @Override
+        public List<String> findBeansNames() {
+            List<String> names = new ArrayList<>();
+            InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(getPojoBeanJSonSchemaDirectory());
+            if (is != null) {
+                try {
+                    CatalogHelper.loadLines(is, names);
+                } catch (IOException e) {
+                    // ignore
+                }
+            }
+            return names;
+        }
+
         @Override
         public Map<String, String> findCapabilities() {
             final Properties properties = new Properties();