Skip to content

Commit 4ff1ea8

Browse files
committed
Reproduce issue #29269 (default datasource required even if using connection provider) in integration tests
1 parent d2d1f0a commit 4ff1ea8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/resources/application.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ quarkus.hibernate-orm.multitenant=database
66
quarkus.hibernate-orm.dialect=MariaDB
77
quarkus.hibernate-orm.packages=io.quarkus.it.hibernate.multitenancy.fruit
88

9-
# We create datasources manually, so a lack of configuration doesn't mean Quarkus should step in with defaults.
10-
quarkus.datasource.devservices.enabled=false
9+
# We create datasources programmatically, so we don't need the default datasource.
10+
# This makes sure Quarkus won't create a default datasource in test/dev mode.
11+
# This also helps reproduce https://github.com/quarkusio/quarkus/issues/29269.
12+
quarkus.datasource.active=false
1113

1214
# Inventory persistence unit
1315
quarkus.hibernate-orm."inventory".schema-management.strategy=none

integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/resources/application.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ quarkus.hibernate-orm.multitenant=database
66
quarkus.hibernate-orm.dialect=MariaDB
77
quarkus.hibernate-orm.packages=io.quarkus.it.hibernate.multitenancy.fruit
88

9-
# We create datasources manually, so a lack of configuration doesn't mean Quarkus should step in with defaults.
10-
quarkus.datasource.devservices.enabled=false
9+
# We create datasources programmatically, so we don't need the default datasource.
10+
# This makes sure Quarkus won't create a default datasource in test/dev mode.
11+
# This also helps reproduce https://github.com/quarkusio/quarkus/issues/29269.
12+
quarkus.datasource.active=false
1113

1214
# Inventory persistence unit
1315
quarkus.hibernate-orm."inventory".schema-management.strategy=none

0 commit comments

Comments
 (0)