Skip to content

Commit e768bb2

Browse files
committed
[#2148] Upgrade PostgreSQL for testing to 17.4
1 parent 6a9b9f4 commit e768bb2

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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:8.4.0" ) ),
233233
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:12.1.0.0" ).acceptLicense() ),
234234
MARIADB( () -> new MariaDBContainer( "mariadb:11.4.2" ) ),

0 commit comments

Comments
 (0)