1.14.0
版本发布时间: 2020-04-14 01:52:00
testcontainers/testcontainers-java最新发布版本:1.20.2(2024-10-01 06:18:31)
What's Changed
This release includes a number of big improvements, features and bug fixes! To name just a handful:
-
🎉 docker-java is updated to 3.2.x. This is a major milestone for the library that we participated in. Please pay attention to deprecation warnings - ideally
com.github.dockerjava.api.*
should be the only package in use fromcom.github.dockerjava.*
. Future versions of Testcontainers will no longer shadecom.github.dockerjava.api.*
and will include it as a dependency (com.github.docker-java:docker-java-api
). -
🎉 R2DBC support for MySQL, MariaDB, PostgreSQL and MS SQL Server! See the docs for more info. Special thanks goes to the R2DBC team for their help and support with this PR.
-
🎉 Vastly improved Couchbase container reliability, thanks to @daschl of @couchbase! This does include some small breaking changes to the Couchbase module's API - but ones that we consider to be worth the migration effort for a more stable build. Please see the documentation for the new usage syntax.
-
🎉 Containers started by the JUnit Jupiter integration are now compatible with
TestLifecycleAware
, allowing greater hooks into phases of test execution. -
🎉 Broadened support for authenticated private registries when using Docker Compose.
Read on for many more improvements:
🚀 Features
- Breaking change: Rewrite Couchbase module for improved reliability (#2491, #2447) @daschl, @bsideup.
- Add R2DBC support (#2545) @bsideup
- Pre-pull images required for Docker Compose (#2201, #1799, #1903) @rnorth
- Include image name in RemoteDockerImage#toString (#2558, #2450) @bsideup, @dbyron0
- VNC recording with BrowserWebdriverContainer in Spock-Extension (#2548, #726, #631) @kiview, @dkublik, @erdi, @tamershahin
- Support TestLifecycleAware-ness of containers started by the JUnit Jupiter integration (#1326) @roamingthings
- Expand Container
dependsOn
parameters to acceptIterable
(#2259) @rnorth - Cache results of auth lookups (#2213) @rnorth
- Add custom exception message when HealthState not present in
docker inspect
response (#2206) @pivovarit
🐛 Bug Fixes
- Use LogMessageWaitStrategy in VncRecordingContainer (#2547) @srempfer
- Protect
NetworkImpl#close
from concurrency issues (#2203) @pivovarit - Fallback to
getDefaultGateway()
if "bridge" is unavailable. (#2429) @bsideup - Fix invalid connection URLs returned by PostgreSQLContainer (#1976) (#2049) @pivovarit
- Fix internal port check when other ports are opened as well on the target container (#2363) @codablock
- Make default file recording directory of BrowserWebDriverContainer platform independent (#2562) @kiview
- Fix Spock's
TestLifecycleAware
integration (#2563) @bsideup
📖 Documentation
- Add more clear warning message instructing users how to enable reusable containers (#2422) @aguibert
- Add more information for using registry mirror (#2477) @sparsick
- Remove unusual public in Groovy example code (#2238) @mkutz
- Use
@DynamicPropertySource
in the Spring Boot example (#2495) @bsideup - Extend docs with registry mirror as workaround for custom images (#2452) @sparsick
- Add example for Cassandra module (#2210, #1975) @ftrossbach
🧹 Housekeeping
- Temporarily ignore DB2 test - unrelated CI disk space issues (#2557) @kiview. This will be reinstated shortly, following work to reduce the disk usage of individual CI jobs.
- Add ciMate (#2550) @bsideup
- Move static config in modules to constructor (#2473) @MitchJust
- Fix
update-docs-version.yml
script (#2519) @rnorth - Bump Copyrights to 2020 (#2488) @pivovarit
📦 Dependency updates
Click to expand...
- Update to docker-java 3.2.1 (#2435) @bsideup
- Remove unused JEE deps (#2505) @dajudge
- Bump aws-java-sdk-logs from 1.11.737 to 1.11.759 in /modules/localstack (#2518) @dependabot-preview
- Bump mockito-core from 3.3.0 to 3.3.3 in /modules/junit-jupiter (#2437) @dependabot-preview
- Bump rest-assured from 4.2.0 to 4.3.0 in /modules/vault (#2440) @dependabot-preview
- Bump okhttp from 3.14.6 to 3.14.7 in /examples (#2481) @dependabot-preview
- Bump tomcat-jdbc from 9.0.31 to 9.0.33 in /modules/mariadb (#2444) @dependabot-preview
- Bump postgresql from 42.2.10 to 42.2.12 in /modules/postgresql (#2499) @dependabot-preview
- Bump testng from 7.1.1 to 7.2.0 in /examples (#2441) @dependabot-preview
- Bump kafka-clients from 2.4.0 to 2.4.1 in /modules/kafka (#2424) @dependabot-preview
- Bump mariadb-java-client from 2.5.4 to 2.6.0 in /modules/mariadb (#2461) @dependabot-preview
- Bump tomcat-jdbc from 9.0.31 to 9.0.33 in /modules/mysql (#2445) @dependabot-preview
- Bump postgresql from 42.2.10 to 42.2.12 in /modules/junit-jupiter (#2498) @dependabot-preview
- Bump postgresql from 42.2.10 to 42.2.12 in /examples (#2500) @dependabot-preview
- Bump elasticsearch-rest-client from 7.6.1 to 7.6.2 in /modules/elasticsearch (#2501) @dependabot-preview
- Bump postgresql from 42.2.10 to 42.2.12 in /modules/spock (#2502) @dependabot-preview
- Bump httpclient from 4.5.11 to 4.5.12 in /modules/spock (#2411) @dependabot-preview
- Bump mockito-core from 3.3.0 to 3.3.3 in /core (#2439) @dependabot-preview
- Bump Cucucmber example version to 5.5.0 (#2476) @rasklaad
- Upgrade localstack to 0.10.8 (#2413) @MariuszCwikla
- Update to docker-java 3.2.0 (#2297) @bsideup