Skip to content

Commit 0aff9e9

Browse files
committed
[#1847] Upgrade PostgreSQL for testing to 16.1
1 parent c45ec94 commit 0aff9e9

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

.github/workflows/tracking-orm-6.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- 3306:3306
6060
postgres:
6161
# Docker Hub image
62-
image: postgres:15.2
62+
image: postgres:16.1
6363
env:
6464
POSTGRES_DB: hreact
6565
POSTGRES_USER: hreact

.github/workflows/tracking-vertx-4.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- 3306:3306
6060
postgres:
6161
# Docker Hub image
62-
image: postgres:15.2
62+
image: postgres:16.1
6363
env:
6464
POSTGRES_DB: hreact
6565
POSTGRES_USER: hreact

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
@@ -82,7 +82,7 @@ class PostgreSQLDatabase implements TestableDatabase {
8282
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
8383
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
8484
*/
85-
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "15.2" ) )
85+
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "16.1" ) )
8686
.withUsername( DatabaseConfiguration.USERNAME )
8787
.withPassword( DatabaseConfiguration.PASSWORD )
8888
.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:15.2" )
56+
.parse( "docker.io/postgres:16.1" )
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:15.2";
39+
public static final String IMAGE_NAME = "postgres:16.1";
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
@@ -38,7 +38,7 @@ required credentials and schema to run the tests:
3838
```
3939
podman run --rm --name HibernateTestingPGSQL \
4040
-e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
41-
-p 5432:5432 docker.io/postgres:15.2
41+
-p 5432:5432 docker.io/postgres:16.1
4242
```
4343

4444
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:15.2
62+
* -p 5432:5432 postgres:16.1
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", "15.2" ) );
70+
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "16.1" ) );
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:15.2" ) ),
231+
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:16.1" ) ),
232232
MYSQL( () -> new MySQLContainer( "mysql:8.0.33" ) ),
233233
DB2( () -> new Db2Container( "docker.io/ibmcom/db2:11.5.8.0" ).acceptLicense() ),
234234
MARIADB( () -> new MariaDBContainer( "mariadb:10.11.3" ) ),

0 commit comments

Comments
 (0)