Skip to content

Commit 6d016cb

Browse files
committed
Bump PostgreSQL version used in tests: 17.0 → 17.2
1 parent e2c5739 commit 6d016cb

21 files changed

+40
-40
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SchemaTest implements JUnit5ValidationFileAssertions {
8888
8989
@Container
9090
@ServiceConnection
91-
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:17.0");
91+
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:17.2");
9292
9393
@Test
9494
void schemaExport() {

data/test/validation/PostgresDumpTest/DatabaseWithData/testCleanAndCreate.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testCleanAndCreateIfExists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testConnectViaHostName.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDataOnly.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDump.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpExcludingTableData.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpSpecificSchemaOnly.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpToFileExcludingTableData.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpVerbose.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
-- Started on [MASKED_TIMESTAMP] UTC
99

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpWithoutPrivileges.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpWithoutSpecificSchema.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/DatabaseWithData/testSchemaOnly.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/EmptyDatabase/testDumpToFile.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/EmptyDatabase/testDumpToString.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/EmptyDatabase/testSchemaOnly.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/testConnectViaDockerContainerIpAddress.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresDumpTest/testConnectViaDockerNetworkAlias_vanilla-17.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

data/test/validation/PostgresRestoreTest/testRestoreOnlySpecificSchema.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.0 (Debian 17.0-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.0 (Debian 17.0-1.pgdg120+1)
5+
-- Dumped from database version 17.2 (Debian 17.2-1.pgdg120+1)
6+
-- Dumped by pg_dump version 17.2 (Debian 17.2-1.pgdg120+1)
77

88
SET statement_timeout = 0;
99
SET lock_timeout = 0;

src/test/java/de/cronn/postgres/snapshot/util/BaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
})
4444
abstract class BaseTest {
4545

46-
private static final DockerImageName POSTGRES_DOCKER_IMAGE = DockerImageName.parse("postgres:17.0");
46+
private static final DockerImageName POSTGRES_DOCKER_IMAGE = DockerImageName.parse("postgres:17.2");
4747

4848
private static final String DATABASE_NAME = "test-db";
4949
protected static final String USERNAME = "test-user";

src/test/java/de/cronn/postgres/snapshot/util/PostgresDumpTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void testOtherPostgresVersion() {
211211
void testConnectViaDockerContainerIpAddress() {
212212
String networkAlias = "postgres-db";
213213
try (Network network = Network.newNetwork();
214-
PostgreSQLContainer<?> postgresInNetworkContainer = createPostgresContainer(DockerImageName.parse("postgres:17.0"))
214+
PostgreSQLContainer<?> postgresInNetworkContainer = createPostgresContainer(DockerImageName.parse("postgres:17.2"))
215215
.withNetwork(network)
216216
.withNetworkAliases(networkAlias)) {
217217
postgresInNetworkContainer.start();
@@ -226,7 +226,7 @@ void testConnectViaDockerContainerIpAddress() {
226226

227227
@ParameterizedTest
228228
@CsvSource({
229-
"vanilla-17, postgres:17.0",
229+
"vanilla-17, postgres:17.2",
230230
"postgis-17, postgis/postgis:17-3.4",
231231
})
232232
void testConnectViaDockerNetworkAlias(String testName, String fullImageName) {

0 commit comments

Comments
 (0)