-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Describe the bug
Tests use only the DataSource configured in main resources instead of the one in test resources.
Expected behavior
The in-memory DataSource configured in the test resources is used like in 1.4.0.CR1 and before.
Actual behavior
The in-memory test resource H2 database is started but agroal is configured to use main resources PostgreSQL DataSource.
To Reproduce
Steps to reproduce the behavior:
- Configure a data source in main resources.
- Configure a data source in test resources.
- Shutdown main data base.
- Execute tests accessing the database.
Configuration
Main application.properties:
# Add your application.properties here, if applicable.
quarkus.datasource.db-kind = postgresql
quarkus.datasource.jdbc.url = jdbc:postgresql://localhost:2345/test-db
quarkus.datasource.username = postgres
quarkus.datasource.password = secretTest application.properties:
# Add your application.properties here, if applicable.
quarkus.datasource.url = jdbc:h2:tcp://localhost/mem:test-db;MODE=PostgreSQL
quarkus.datasource.driver = org.h2.DriverScreenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Output of
uname -aorver: Linux voyager 5.6.7-arch1-1 Switch to the Maven distributed copy of the SubstrateVM annotations #1 SMP PREEMPT Thu, 23 Apr 2020 09:13:56 +0000 x86_64 GNU/Linux - Output of
java -version: openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02)
OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02, mixed mode, sharing) - GraalVM version (if different from Java):
- Quarkus version or git rev: 1.4.1.Final
- Build tool (ie. output of
mvnw --versionorgradlew --version): Gradle 6.3
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working