Skip to content

Commit

Permalink
[#1878] Upgrade PostgreSQL to 16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Apr 15, 2024
1 parent 873baa0 commit 2c902f8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class PostgreSQLDatabase implements TestableDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "16.1" ) )
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "16.2" ) )
.withUsername( DatabaseConfiguration.USERNAME )
.withPassword( DatabaseConfiguration.PASSWORD )
.withDatabaseName( DatabaseConfiguration.DB_NAME )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public abstract class BaseReactiveIT {
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );

public static final DockerImageName IMAGE_NAME = DockerImageName
.parse( "docker.io/postgres:16.1" )
.parse( "docker.io/postgres:16.2" )
.asCompatibleSubstituteFor( "postgres" );

public static final String USERNAME = "hreact";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class VertxServer {
// These properties are in DatabaseConfiguration in core
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );

public static final String IMAGE_NAME = "postgres:16.1";
public static final String IMAGE_NAME = "postgres:16.2";
public static final String USERNAME = "hreact";
public static final String PASSWORD = "hreact";
public static final String DB_NAME = "hreact";
Expand Down
2 changes: 1 addition & 1 deletion podman.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ required credentials and schema to run the tests:
```
podman run --rm --name HibernateTestingPGSQL \
-e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
-p 5432:5432 docker.io/postgres:16.1
-p 5432:5432 docker.io/postgres:16.2
```

When the database has started, you can run the tests on PostgreSQL with:
Expand Down
2 changes: 1 addition & 1 deletion tooling/jbang/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* <pre>
* podman run --rm --name HibernateTestingPGSQL \
* -e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
* -p 5432:5432 postgres:16.1
* -p 5432:5432 postgres:16.2
* </pre>
* </dd>
* <dt>3. Run the example with JBang</dt>
Expand Down
2 changes: 1 addition & 1 deletion tooling/jbang/PostgreSQLReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class {baseName} {
}

@ClassRule
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "16.1" ) );
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "16.2" ) );

private Mutiny.SessionFactory sessionFactory;

Expand Down
2 changes: 1 addition & 1 deletion tooling/jbang/ReactiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public String toString() {
* It's a wrapper around the testcontainers classes.
*/
enum Database {
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:16.1" ) ),
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:16.2" ) ),
MYSQL( () -> new MySQLContainer( "mysql:8.3.0" ) ),
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:11.5.9.0" ).acceptLicense() ),
MARIADB( () -> new MariaDBContainer( "mariadb:11.3.2" ) ),
Expand Down

0 comments on commit 2c902f8

Please sign in to comment.