From 907e23a8dc3b5963a7fe4f92aa7f5650db2239fc Mon Sep 17 00:00:00 2001 From: Jan Kroken Date: Sun, 29 Sep 2024 22:22:35 +0200 Subject: [PATCH] PostgresSQL 16.4 --- .../pensjonsopptjening/common/PostgresqlTestContainer.kt | 8 ++++---- src/test/resources/application.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/common/PostgresqlTestContainer.kt b/src/test/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/common/PostgresqlTestContainer.kt index c9b5047b..c4106428 100644 --- a/src/test/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/common/PostgresqlTestContainer.kt +++ b/src/test/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/common/PostgresqlTestContainer.kt @@ -28,16 +28,16 @@ class PostgresqlTestContainer private constructor(image: String) : PostgreSQLCon companion object { - val instance: PostgresqlTestContainer = PostgresqlTestContainer("postgres:14.9-alpine") + val instance: PostgresqlTestContainer = PostgresqlTestContainer("postgres:16.4-alpine") private val dataSource = HikariDataSource(HikariConfig().apply { - jdbcUrl = "jdbc:tc:postgresql:14:///test" + jdbcUrl = "jdbc:tc:postgresql:16:///test" username = instance.username password = instance.password }) fun createInstance(name: String): DataSource { - val instance = PostgresqlTestContainer("postgres:14.9-alpine") + val instance = PostgresqlTestContainer("postgres:16.4-alpine") val dataSource = HikariDataSource(HikariConfig().apply { - jdbcUrl = "jdbc:tc:postgresql:14:///$name" + jdbcUrl = "jdbc:tc:postgresql:16:///$name" username = instance.username password = instance.password }) diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index 6dd613c9..5d5f967d 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -13,6 +13,6 @@ GYLDIG_OPPTJENINGSAR: "2020" spring.datasource: driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver - url: jdbc:tc:postgresql:14:///test + url: jdbc:tc:postgresql:16:///test username: test password: test \ No newline at end of file