Skip to content

Update testcontainers to the newest version #4889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<oracle.version>19.26.0.0</oracle.version>
<sqlserver.version>11.2.3.jre17</sqlserver.version>
<jtds.version>1.3.1</jtds.version>
<testcontainers.version>1.20.6</testcontainers.version>
<testcontainers.version>1.21.1</testcontainers.version>
<jsonassert.version>1.5.3</jsonassert.version>
<groovy-jsr223.version>4.0.26</groovy-jsr223.version>
<nashorn.version>15.6</nashorn.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@EnableBatchProcessing
class MongoDBIntegrationTestConfiguration {

private static final DockerImageName MONGODB_IMAGE = DockerImageName.parse("mongo:8.0.1");
private static final DockerImageName MONGODB_IMAGE = DockerImageName.parse("mongo:8.0");

@Bean(initMethod = "start")
public MongoDBContainer mongoDBContainer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
class Db2JobRepositoryIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("icr.io/db2_community/db2:11.5.9.0");
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("icr.io/db2_community/db2:12.1.0.0");

@Container
public static Db2Container db2 = new Db2Container(DB2_IMAGE).acceptLicense();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
class MariaDBJobRepositoryIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName MARIADB_IMAGE = DockerImageName.parse("mariadb:10.9.3");
private static final DockerImageName MARIADB_IMAGE = DockerImageName.parse("mariadb:11.8");

@Container
public static MariaDBContainer<?> mariaDBContainer = new MariaDBContainer<>(MARIADB_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MySQLJdbcJobRepositoryIntegrationTests {

// TODO find the best way to externalize and manage image versions
// when implementing https://github.com/spring-projects/spring-batch/issues/3092
private static final DockerImageName MYSQL_IMAGE = DockerImageName.parse("mysql:8.0.31");
private static final DockerImageName MYSQL_IMAGE = DockerImageName.parse("mysql:9.2");

@Container
public static MySQLContainer<?> mysql = new MySQLContainer<>(MYSQL_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
class MySQLJobRepositoryIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName MYSQL_IMAGE = DockerImageName.parse("mysql:8.0.31");
private static final DockerImageName MYSQL_IMAGE = DockerImageName.parse("mysql:9.2");

@Container
public static MySQLContainer<?> mysql = new MySQLContainer<>(MYSQL_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

/**
* Official Docker images for Oracle are not publicly available. Oracle support is tested
* semi-manually for the moment: 1. Build a docker image for oracle/database:11.2.0.2-xe:
* semi-manually for the moment: 1. Build a docker image for gvenzl/oracle-free:23.7:
* <a href=
* "https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance#running-oracle-database-11gr2-express-edition-in-a-container">...</a>
* 2. Run the test `testJobExecution`
Expand All @@ -66,7 +66,7 @@
class OracleJobRepositoryIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName ORACLE_IMAGE = DockerImageName.parse("oracle/database:11.2.0.2-xe");
private static final DockerImageName ORACLE_IMAGE = DockerImageName.parse("gvenzl/oracle-free:23.7");

@Container
public static OracleContainer oracle = new OracleContainer(ORACLE_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
class PostgreSQLJobRepositoryIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName POSTGRESQL_IMAGE = DockerImageName.parse("postgres:13.3");
private static final DockerImageName POSTGRESQL_IMAGE = DockerImageName.parse("postgres:17.5");

@Container
public static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>(POSTGRESQL_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
class Db2PagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("icr.io/db2_community/db2:11.5.9.0");
private static final DockerImageName DB2_IMAGE = DockerImageName.parse("icr.io/db2_community/db2:12.1.0.0");

@Container
public static Db2Container db2 = new Db2Container(DB2_IMAGE).acceptLicense();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class MariaDBPagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName MARIADB_IMAGE = DockerImageName.parse("mariadb:10.9.3");
private static final DockerImageName MARIADB_IMAGE = DockerImageName.parse("mariadb:11.8");

@Container
public static MariaDBContainer<?> mariaDBContainer = new MariaDBContainer<>(MARIADB_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class MySqlPagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName MYSQL_IMAGE = DockerImageName.parse("mysql:8.0.31");
private static final DockerImageName MYSQL_IMAGE = DockerImageName.parse("mysql:9.2");

@Container
public static MySQLContainer<?> mysql = new MySQLContainer<>(MYSQL_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

/**
* Official Docker images for Oracle are not publicly available. Oracle support is tested
* semi-manually for the moment: 1. Build a docker image for oracle/database:11.2.0.2-xe:
* semi-manually for the moment: 1. Build a docker image for gvenzl/oracle-free:23.7:
* <a href=
* "https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance#running-oracle-database-11gr2-express-edition-in-a-container">...</a>
* 2. Run the test `testJobExecution`
Expand All @@ -47,7 +47,7 @@
class OraclePagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName ORACLE_IMAGE = DockerImageName.parse("oracle/database:11.2.0.2-xe");
private static final DockerImageName ORACLE_IMAGE = DockerImageName.parse("gvenzl/oracle-free:23.7");

@Container
public static OracleContainer oracle = new OracleContainer(ORACLE_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class PostgresPagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests {

// TODO find the best way to externalize and manage image versions
private static final DockerImageName POSTGRESQL_IMAGE = DockerImageName.parse("postgres:13.3");
private static final DockerImageName POSTGRESQL_IMAGE = DockerImageName.parse("postgres:17.5");

@Container
public static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>(POSTGRESQL_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
@ExtendWith(SpringExtension.class)
class KafkaItemReaderIntegrationTests {

private static final DockerImageName KAFKA_IMAGE = DockerImageName.parse("apache/kafka:3.9.1");
private static final DockerImageName KAFKA_IMAGE = DockerImageName.parse("apache/kafka:4.0.0");

@Container
public static KafkaContainer kafka = new KafkaContainer(KAFKA_IMAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
@Testcontainers(disabledWithoutDocker = true)
class AmqpJobFunctionalTests {

private static final DockerImageName RABBITMQ_IMAGE = DockerImageName.parse("rabbitmq:3");
private static final DockerImageName RABBITMQ_IMAGE = DockerImageName.parse("rabbitmq:4.1");

@Container
public static RabbitMQContainer rabbitmq = new RabbitMQContainer(RABBITMQ_IMAGE);
Expand Down
Loading