From 3edd07ca10675da64f8bd1c4c6e1e9b9e2830fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pere=20Fern=C3=A1ndez?= Date: Thu, 9 May 2024 22:19:28 +0200 Subject: [PATCH] [NO_ISSUE] Fixing named datasource's configuration for `data-index-inmemory` & `jobs-service-embedded` (#2042) * NO_ISSUE: fixing named datasource's configuration for `data-index-inmemory` & `jobs-service-embedded` * - Disabling oidc in tests - Formatting classes --- .../src/test/resources/application.properties | 8 +++++++- .../src/test/resources/application.properties | 8 +++++++- .../src/test/resources/application.properties | 8 +++++++- .../src/test/resources/application.properties | 8 +++++++- .../runtime/src/main/resources/application.properties | 4 ++-- .../runtime/src/main/resources/application.properties | 4 ++-- 6 files changed, 32 insertions(+), 8 deletions(-) diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties index 5cf2dfb3a2..9193b5a235 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties @@ -27,4 +27,10 @@ quarkus.hibernate-orm.database.generation=create quarkus.hibernate-orm.database.generation.halt-on-error=true quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy quarkus.hibernate-orm.jdbc.timezone=UTC -quarkus.hibernate-orm.log.sql=true \ No newline at end of file +quarkus.hibernate-orm.log.sql=true + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties index ebc31394c1..f65003ecab 100644 --- a/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties @@ -31,4 +31,10 @@ quarkus.log.level=INFO # MongoDB quarkus.mongodb.database=kogito quarkus.mongodb.devservices.enabled=false -kogito.apps.persistence.type=mongodb \ No newline at end of file +kogito.apps.persistence.type=mongodb + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties index 8ff5711746..3e88fe838f 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties @@ -30,4 +30,10 @@ quarkus.hibernate-orm.database.generation=drop-and-create quarkus.hibernate-orm.database.generation.halt-on-error=true quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy quarkus.hibernate-orm.jdbc.timezone=UTC -quarkus.hibernate-orm.log.sql=true \ No newline at end of file +quarkus.hibernate-orm.log.sql=true + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties index 517ca87684..b5637dfd64 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties @@ -29,4 +29,10 @@ quarkus.hibernate-orm.database.generation=drop-and-create quarkus.hibernate-orm.database.generation.halt-on-error=true quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy quarkus.hibernate-orm.jdbc.timezone=UTC -quarkus.hibernate-orm.log.sql=true \ No newline at end of file +quarkus.hibernate-orm.log.sql=true + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties index 587a8cf10c..815bcb43dd 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties @@ -23,8 +23,8 @@ kogito.data-index.domain-indexing=false kogito.data-index.blocking=true #PostgreSql -quarkus.datasource.data_index.db-kind=postgresql -quarkus.datasource.data_index.devservices.enabled=false +quarkus.datasource."data_index".db-kind=postgresql +quarkus.datasource."data_index".devservices.enabled=false #Hibernate quarkus.hibernate-orm.jdbc.timezone=UTC diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties index 58cf6e8a22..c4c93f18f6 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties @@ -20,8 +20,8 @@ quarkus.arc.selected-alternatives=org.kie.kogito.addons.quarkus.jobs.service.emb %dev.quarkus.log.category."org.kie.kogito.jobs".level=INFO -quarkus.datasource.jobs_service.db-kind=postgresql -quarkus.datasource.jobs_service.devservices.enabled=false +quarkus.datasource."jobs_service".db-kind=postgresql +quarkus.datasource."jobs_service".devservices.enabled=false quarkus.datasource.devservices.enabled=false quarkus.flyway.jobs_service.locations=db/jobs-service quarkus.flyway.jobs_service.migrate-at-start=true