mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
56 mins ago 3fe9dbbf75d9d20cec522cae079a74c704a656f6
Upgrade Testcontainers for Docker Engine compatibility (#1331)

## Summary

- Upgrade the five Testcontainers test dependencies to 1.21.4 and manage
their version with one Maven property.
- Restore database container startup in precommit. The Docker daemon on
the Ubuntu runner requires API 1.40 or later and rejects requests from
Testcontainers 1.20.6 using API 1.32. TestNG consequently skips the
affected JDBC and Cassandra integration tests. [Runner
log](https://github.com/OpenIdentityPlatform/OpenDJ/actions/runs/45575844480/job/139073454846)

## Validation

- Reproduced the HTTP 400 response with Testcontainers 1.20.6 on Docker
Engine 29.8.2.
- A focused Maven `verify` with Java 11 and Testcontainers 1.21.4
started PostgreSQL containers and passed all 134 tests in
`PgSqlTestCase` and `EncryptedTestCase` with zero failures and skips.
- Verified the resolved Testcontainers artifacts and ran `git diff
--check`.
1 files modified
11 ■■■■■ changed files
opendj-server-legacy/pom.xml 11 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/pom.xml
@@ -51,6 +51,7 @@
    <product.archive.name>${product.name.lowercase}-${project.version}</product.archive.name>
    <juel.version>2.2.7</juel.version>
    <testcontainers.version>1.21.4</testcontainers.version>
    <opendmk.lib.dir>${basedir}/opendmk</opendmk.lib.dir>
  </properties>
@@ -267,31 +268,31 @@
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>cassandra</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>postgresql</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>oracle-free</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>mysql</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>mssqlserver</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>