Skip to content

Commit

Permalink
PostgresSQL 16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jankroken-nav committed Sep 29, 2024
1 parent dc16272 commit 907e23a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 907e23a

Please sign in to comment.