From 8e9d7a2416b0723aae5d0f4425f3210bb7c55e04 Mon Sep 17 00:00:00 2001 From: Paul Ebermann Date: Fri, 18 Aug 2023 11:41:17 +0200 Subject: [PATCH] use Zomky embedded postgres instead of opentable one. This allows to use a newer postgresql version without much other changes. --- nakadi-producer-spring-boot-starter/pom.xml | 18 +++--------------- .../nakadiproducer/FlywayDataSourceIT.java | 2 +- .../config/EmbeddedDataSourceConfig.java | 2 +- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/nakadi-producer-spring-boot-starter/pom.xml b/nakadi-producer-spring-boot-starter/pom.xml index b3251346..6464287a 100644 --- a/nakadi-producer-spring-boot-starter/pom.xml +++ b/nakadi-producer-spring-boot-starter/pom.xml @@ -33,7 +33,6 @@ org.springframework spring-jdbc - ${spring.version} org.flywaydb @@ -73,16 +72,10 @@ test - com.opentable.components - otj-pg-embedded - 0.7.1 + io.zonky.test + embedded-postgres + 2.0.4 test - - - postgresql - postgresql - - commons-logging @@ -109,11 +102,6 @@ org.springframework.boot spring-boot-actuator-autoconfigure - - org.springframework - spring-jdbc - 5.3.12 - jakarta.annotation jakarta.annotation-api diff --git a/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/FlywayDataSourceIT.java b/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/FlywayDataSourceIT.java index cd9cd332..1c4a0fac 100644 --- a/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/FlywayDataSourceIT.java +++ b/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/FlywayDataSourceIT.java @@ -14,7 +14,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.test.context.ContextConfiguration; -import com.opentable.db.postgres.embedded.EmbeddedPostgres; +import io.zonky.test.db.postgres.embedded.EmbeddedPostgres; @ContextConfiguration(classes=FlywayDataSourceIT.Config.class) public class FlywayDataSourceIT extends BaseMockedExternalCommunicationIT { diff --git a/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/config/EmbeddedDataSourceConfig.java b/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/config/EmbeddedDataSourceConfig.java index 52bd12de..91697cd6 100644 --- a/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/config/EmbeddedDataSourceConfig.java +++ b/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/config/EmbeddedDataSourceConfig.java @@ -1,7 +1,7 @@ package org.zalando.nakadiproducer.config; -import com.opentable.db.postgres.embedded.EmbeddedPostgres; +import io.zonky.test.db.postgres.embedded.EmbeddedPostgres; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary;