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 d880b593d3 Remove not needed Agroal dependency from Jasypt tests
d880b593d3 is described below

commit d880b593d32f7b61995c4de18e7980ac0636bf9b
Author: Lukas Lowinger <llowi...@redhat.com>
AuthorDate: Sat Sep 20 10:05:47 2025 +0200

    Remove not needed Agroal dependency from Jasypt tests
---
 integration-tests/jasypt/pom.xml                   |  4 ----
 .../component/jasypt/it/JasyptResource.java        | 24 ----------------------
 .../src/main/resources/application.properties      |  6 ------
 3 files changed, 34 deletions(-)

diff --git a/integration-tests/jasypt/pom.xml b/integration-tests/jasypt/pom.xml
index 1702d5f177..4b17cbe88c 100644
--- a/integration-tests/jasypt/pom.xml
+++ b/integration-tests/jasypt/pom.xml
@@ -59,10 +59,6 @@
             <groupId>io.quarkus</groupId>
             <artifactId>quarkus-resteasy</artifactId>
         </dependency>
-        <dependency>
-            <groupId>io.quarkus</groupId>
-            <artifactId>quarkus-agroal</artifactId>
-        </dependency>
 
         <!-- test dependencies -->
         <dependency>
diff --git 
a/integration-tests/jasypt/src/main/java/org/apache/camel/quarkus/component/jasypt/it/JasyptResource.java
 
b/integration-tests/jasypt/src/main/java/org/apache/camel/quarkus/component/jasypt/it/JasyptResource.java
index f2de6a2b3a..4be2568f7f 100644
--- 
a/integration-tests/jasypt/src/main/java/org/apache/camel/quarkus/component/jasypt/it/JasyptResource.java
+++ 
b/integration-tests/jasypt/src/main/java/org/apache/camel/quarkus/component/jasypt/it/JasyptResource.java
@@ -16,13 +16,6 @@
  */
 package org.apache.camel.quarkus.component.jasypt.it;
 
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import io.agroal.api.AgroalDataSource;
-import io.quarkus.arc.Arc;
 import jakarta.inject.Inject;
 import jakarta.ws.rs.GET;
 import jakarta.ws.rs.Path;
@@ -75,23 +68,6 @@ public class JasyptResource {
         }
     }
 
-    @Path("/secure/database")
-    @GET
-    @Produces(MediaType.TEXT_PLAIN)
-    public String connectToSecureDatabase() throws SQLException {
-        AgroalDataSource dataSource = 
Arc.container().instance(AgroalDataSource.class).get();
-        try (Connection connection = dataSource.getConnection()) {
-            try (Statement statement = connection.createStatement()) {
-                try (ResultSet rs = statement.executeQuery("SELECT USER_NAME 
FROM INFORMATION_SCHEMA.USERS")) {
-                    if (rs.next()) {
-                        return rs.getString("USER_NAME").toLowerCase();
-                    }
-                    return null;
-                }
-            }
-        }
-    }
-
     @Path("/secure/direct/component")
     @GET
     @Produces(MediaType.TEXT_PLAIN)
diff --git a/integration-tests/jasypt/src/main/resources/application.properties 
b/integration-tests/jasypt/src/main/resources/application.properties
index 71fa9e9bfc..63a3651fec 100644
--- a/integration-tests/jasypt/src/main/resources/application.properties
+++ b/integration-tests/jasypt/src/main/resources/application.properties
@@ -42,9 +42,3 @@ timer.repeatCount.secret = ENC(e8n9auBwOA3XuGNZONICkw==)
 # Custom profile secret (value translates to: Hello Custom Profile
 %custom-profile.greeting.secret = 
ENC(O8w+UtMRj52Z8PKgJg2tRsE7zFH954LH0GJIayMpr5s=)
 %custom-profile.greeting.expression.secret = 
${camel-jasypt::ENC(GKJfy64eBDzxUuQCfArd6OjnAaW/oM9e)}
-
-# Overridden with encrypted values in JasyptSecureExtensionConfigTestProfile
-quarkus.datasource.devservices.username = camel
-quarkus.datasource.devservices.password = c4m31s3cr3t
-quarkus.datasource.username = test-username
-quarkus.datasource.password = test-password

Reply via email to