From debe021d3da555ac23aad66bcb093c4239f93bba Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Fri, 5 Jul 2024 10:57:34 +0200 Subject: [PATCH] GH-699 - Extract common properties of JDBC EPR test setup. --- .../src/test/resources/application-h2.properties | 7 ------- .../src/test/resources/application-hsqldb.properties | 4 ---- .../src/test/resources/application-mysql.properties | 4 ---- .../src/test/resources/application-postgres.properties | 4 ---- .../src/test/resources/application.properties | 2 ++ 5 files changed, 2 insertions(+), 19 deletions(-) diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-h2.properties b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-h2.properties index 54f38c3d..170a803b 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-h2.properties +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-h2.properties @@ -1,9 +1,2 @@ spring.datasource.driverClassName=org.h2.Driver spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1 - -spring.test.database.replace=NONE - -spring.modulith.events.jdbc-schema-initialization.enabled=true - -logging.level.org.springframework.jdbc=trace -spring.main.banner-mode=off diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-hsqldb.properties b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-hsqldb.properties index 922d66d6..f7d2f59d 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-hsqldb.properties +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-hsqldb.properties @@ -1,6 +1,2 @@ spring.datasource.driverClassName=org.hsqldb.jdbc.JDBCDriver spring.datasource.url=jdbc:hsqldb:mem:testdb;DB_CLOSE_DELAY=-1 - -spring.test.database.replace=NONE - -spring.modulith.events.jdbc-schema-initialization.enabled=true diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-mysql.properties b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-mysql.properties index e2338019..2c7d3556 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-mysql.properties +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-mysql.properties @@ -1,6 +1,2 @@ spring.datasource.url=jdbc:tc:mysql:8.0.30:///events spring.datasource.driverClassName=org.testcontainers.jdbc.ContainerDatabaseDriver - -spring.test.database.replace=NONE - -spring.modulith.events.jdbc-schema-initialization.enabled=true diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-postgres.properties b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-postgres.properties index 02859297..be027036 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-postgres.properties +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application-postgres.properties @@ -1,6 +1,2 @@ spring.datasource.url=jdbc:tc:postgresql:13.2:////postgres spring.datasource.driverClassName=org.testcontainers.jdbc.ContainerDatabaseDriver - -spring.test.database.replace=NONE - -spring.modulith.events.jdbc-schema-initialization.enabled=true diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application.properties b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application.properties index b92adaf4..eb5f2088 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application.properties +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/test/resources/application.properties @@ -1 +1,3 @@ spring.main.banner-mode=OFF +spring.modulith.events.jdbc-schema-initialization.enabled=true +spring.test.database.replace=NONE