Skip to content

Commit 4fd6d0d

Browse files
committed
Update postgres docker image to 17
1 parent 391dd84 commit 4fd6d0d

11 files changed

+12
-12
lines changed

gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static void main(String[] args)
4343
trino2.withCopyFileToContainer(forClasspathResource("trino-config.properties"), "/etc/trino/config.properties");
4444
trino2.start();
4545

46-
PostgreSQLContainer<?> postgres = new PostgreSQLContainer("postgres:16");
46+
PostgreSQLContainer<?> postgres = new PostgreSQLContainer("postgres:17");
4747
postgres.withUsername("trino_gateway_db_admin");
4848
postgres.withPassword("P0stG&es");
4949
postgres.withDatabaseName("trino_gateway_db");

gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ final class TestGatewayHaMultipleBackend
6565

6666
private TrinoContainer adhocTrino;
6767
private TrinoContainer scheduledTrino;
68-
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:16");
68+
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:17");
6969

7070
public static String oauthInitiatePath = OAuth2GatewayCookie.OAUTH2_PATH;
7171
public static String oauthCallbackPath = oauthInitiatePath + "/callback";

gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
final class TestGatewayHaSingleBackend
4242
{
4343
private TrinoContainer trino;
44-
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:16");
44+
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:17");
4545
int routerPort = 21001 + (int) (Math.random() * 1000);
4646

4747
@BeforeAll

gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaWithRoutingRulesSingleBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class TestGatewayHaWithRoutingRulesSingleBackend
3737
{
3838
private final OkHttpClient httpClient = new OkHttpClient();
3939
private TrinoContainer trino;
40-
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:16");
40+
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:17");
4141
int routerPort = 21001 + (int) (Math.random() * 1000);
4242

4343
@BeforeAll

gateway-ha/src/test/java/io/trino/gateway/ha/TestNoXForwarded.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class TestNoXForwarded
3838
{
3939
private final OkHttpClient httpClient = new OkHttpClient();
4040
private TrinoContainer trino;
41-
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:16");
41+
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:17");
4242
int routerPort = 21001 + (int) (Math.random() * 1000);
4343
int backendPort;
4444

gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class TestTrinoResource
4848
{
4949
private static final OkHttpClient httpClient = new OkHttpClient();
5050
private static final ObjectMapper objectMapper = new ObjectMapper();
51-
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:16");
51+
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:17");
5252

5353
int routerPort = 22000 + (int) (Math.random() * 1000);
5454
JdbcConnectionManager connectionManager;

gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryHistoryManagerPostgresql.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class TestQueryHistoryManagerPostgresql
2222
@Override
2323
protected final JdbcDatabaseContainer<?> startContainer()
2424
{
25-
JdbcDatabaseContainer<?> container = new PostgreSQLContainer<>("postgres:16");
25+
JdbcDatabaseContainer<?> container = new PostgreSQLContainer<>("postgres:17");
2626
container.start();
2727
return container;
2828
}

gateway-ha/src/test/java/io/trino/gateway/ha/router/TestRoutingAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class TestRoutingAPI
4343
public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
4444
private final OkHttpClient httpClient = new OkHttpClient();
4545
private TrinoContainer trino;
46-
private final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>("postgres:16");
46+
private final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>("postgres:17");
4747
int routerPort = 21001 + (int) (Math.random() * 1000);
4848
int backendPort;
4949

gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ final class TestAuthorization
4545
{
4646
private static final OkHttpClient httpClient = new OkHttpClient();
4747
private static final ObjectMapper objectMapper = new ObjectMapper();
48-
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:16");
48+
private final PostgreSQLContainer postgresql = new PostgreSQLContainer("postgres:17");
4949

5050
int routerPort = 22000 + (int) (Math.random() * 1000);
5151

gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void setup()
7575
{
7676
Network network = Network.newNetwork();
7777

78-
PostgreSQLContainer<?> databaseContainer = new PostgreSQLContainer<>("postgres:16")
78+
PostgreSQLContainer<?> databaseContainer = new PostgreSQLContainer<>("postgres:17")
7979
.withNetwork(network)
8080
.withNetworkAliases("hydra-db")
8181
.withUsername("hydra")
@@ -146,7 +146,7 @@ void setup()
146146
"--callbacks", callbackUrl);
147147
clientCreatingContainer.start();
148148

149-
PostgreSQLContainer gatewayBackendDatabase = new PostgreSQLContainer("postgres:16");
149+
PostgreSQLContainer gatewayBackendDatabase = new PostgreSQLContainer("postgres:17");
150150
gatewayBackendDatabase.start();
151151

152152
URL resource = HaGatewayTestUtils.class.getClassLoader().getResource("auth/localhost.jks");

0 commit comments

Comments
 (0)