Skip to content

Commit e21e979

Browse files
committed
[#2190] Upgrade PostgreSQL to 17.4
1 parent d522a80 commit e21e979

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- 3306:3306
6767
postgres:
6868
# Docker Hub image
69-
image: postgres:16.3
69+
image: postgres:17.4
7070
env:
7171
POSTGRES_DB: hreact
7272
POSTGRES_USER: hreact

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Learn more at <http://hibernate.org/reactive>.
3030
Hibernate Reactive has been tested with:
3131

3232
- Java 11, 17, 21, 23
33-
- PostgreSQL 16
33+
- PostgreSQL 17
3434
- MySQL 9
3535
- MariaDB 11
3636
- Db2 11

hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/PostgreSQLDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class PostgreSQLDatabase implements TestableDatabase {
8787
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
8888
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
8989
*/
90-
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "16.3" ) )
90+
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "17.4" ) )
9191
.withUsername( DatabaseConfiguration.USERNAME )
9292
.withPassword( DatabaseConfiguration.PASSWORD )
9393
.withDatabaseName( DatabaseConfiguration.DB_NAME )

integration-tests/bytecode-enhancements-it/src/test/java/org/hibernate/reactive/it/BaseReactiveIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public abstract class BaseReactiveIT {
5353
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );
5454

5555
public static final DockerImageName IMAGE_NAME = DockerImageName
56-
.parse( "docker.io/postgres:16.3" )
56+
.parse( "docker.io/postgres:17.4" )
5757
.asCompatibleSubstituteFor( "postgres" );
5858

5959
public static final String USERNAME = "hreact";

integration-tests/hibernate-validator-postgres-it/src/test/java/org/hibernate/reactive/it/quarkus/qe/database/BaseReactiveIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public abstract class BaseReactiveIT {
5353
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );
5454

5555
public static final DockerImageName IMAGE_NAME = DockerImageName
56-
.parse( "docker.io/postgres:16.3" )
56+
.parse( "docker.io/postgres:17.4" )
5757
.asCompatibleSubstituteFor( "postgres" );
5858

5959
public static final String USERNAME = "hreact";

integration-tests/verticle-postgres-it/src/main/java/org/hibernate/reactive/it/verticle/VertxServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class VertxServer {
3636
// These properties are in DatabaseConfiguration in core
3737
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );
3838

39-
public static final String IMAGE_NAME = "postgres:16.3";
39+
public static final String IMAGE_NAME = "postgres:17.4";
4040
public static final String USERNAME = "hreact";
4141
public static final String PASSWORD = "hreact";
4242
public static final String DB_NAME = "hreact";

podman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ required credentials and schema to run the tests:
3939
podman run --rm --name HibernateTestingPGSQL \
4040
-e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
4141
-e POSTGRES_INITDB_ARGS="-A password" \
42-
-p 5432:5432 docker.io/postgres:16.3
42+
-p 5432:5432 docker.io/postgres:17.4
4343
```
4444

4545
When the database has started, you can run the tests on PostgreSQL with:

tooling/jbang/Example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* <pre>
6060
* podman run --rm --name HibernateTestingPGSQL \
6161
* -e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
62-
* -p 5432:5432 postgres:16.3
62+
* -p 5432:5432 postgres:17.4
6363
* </pre>
6464
* </dd>
6565
* <dt>3. Run the example with JBang</dt>

tooling/jbang/PostgreSQLReactiveTest.java.qute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class {baseName} {
6767
}
6868

6969
@ClassRule
70-
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "16.3" ) );
70+
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "17.4" ) );
7171

7272
private Mutiny.SessionFactory sessionFactory;
7373

tooling/jbang/ReactiveTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public String toString() {
228228
* It's a wrapper around the testcontainers classes.
229229
*/
230230
enum Database {
231-
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:16.3" ) ),
231+
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:17.4" ) ),
232232
MYSQL( () -> new MySQLContainer( "mysql:9.2.0" ) ),
233233
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:12.1.0.0" ).acceptLicense() ),
234234
MARIADB( () -> new MariaDBContainer( "mariadb:11.7.2" ) ),

0 commit comments

Comments
 (0)