Skip to content

Commit

Permalink
Test against PostgreSQL 10 since 9.x is now unsupported
Browse files Browse the repository at this point in the history
The connector tests were already migrated to use PostgreSQL 10 in
92e5ba6.
We also pin to a specific version to avoid CI being non-deterministic.
  • Loading branch information
hashhar committed Feb 23, 2022
1 parent 02fa8b4 commit 55d9ac2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TestingPostgreSqlServer
public TestingPostgreSqlServer()
{
// Use the oldest supported PostgreSQL version
dockerContainer = new PostgreSQLContainer<>("postgres:10")
dockerContainer = new PostgreSQLContainer<>("postgres:10.20")
.withDatabaseName(DATABASE)
.withUsername(USER)
.withPassword(PASSWORD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class TestDbResourceGroupsPostgresqlFlywayMigration
@Override
protected final JdbcDatabaseContainer<?> startContainer()
{
JdbcDatabaseContainer<?> container = new PostgreSQLContainer<>("postgres:9.6");
JdbcDatabaseContainer<?> container = new PostgreSQLContainer<>("postgres:10.20");
container.start();
return container;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void extendEnvironment(Environment.Builder builder)
private DockerContainer createPostgreSql()
{
// Use the oldest supported PostgreSQL version
DockerContainer container = new DockerContainer("postgres:9.6", "postgresql")
DockerContainer container = new DockerContainer("postgres:10.20", "postgresql")
.withEnv("POSTGRES_PASSWORD", "test")
.withEnv("POSTGRES_USER", "test")
.withEnv("POSTGRES_DB", "test")
Expand Down

0 comments on commit 55d9ac2

Please sign in to comment.