Skip to content

Releases: testcontainers/testcontainers-java

1.10.7

12 Mar 22:20
19379cd

Choose a tag to compare

What's Changed

🚀 Features

🐛 Bug Fixes

📖 Documentation

📦 Dependency updates

  • Update ryuk references to latest version - 0.2.3 (#1212) @alelech
  • Bump annotations from 16.0.3 to 17.0.0 in /core (#1194) @dependabot[bot]
  • Bump transport from 6.5.4 to 6.6.0 in /modules/elasticsearch (#1191) @dependabot[bot]
  • Bump elasticsearch-rest-client from 6.5.4 to 6.6.0 in /modules/elasticsearch (#1190) @dependabot[bot]
  • Bump amqp-client from 5.5.3 to 5.6.0 in /core (#1186) @dependabot[bot]
  • Bump mariadb-java-client from 2.3.0 to 2.4.0 in /modules/mariadb (#1189) @dependabot[bot]
  • Bump HikariCP from 3.3.0 to 3.3.1 in /modules/spock (#1224) @dependabot[bot]
  • Bump junit-jupiter-engine from 5.3.2 to 5.4.0 in /modules/junit-jupiter (#1228) @dependabot[bot]
  • Bump HikariCP from 3.3.0 to 3.3.1 in /modules/junit-jupiter (#1227) @dependabot[bot]
  • Bump mysql-connector-java from 8.0.14 to 8.0.15 in /modules/spock (#1208) @dependabot[bot]
  • Bump mysql-connector-java from 8.0.14 to 8.0.15 in /modules/junit-jupiter (#1209) @dependabot[bot]
  • Bump tomcat-jdbc from 9.0.14 to 9.0.16 in /modules/mysql (#1226) @dependabot[bot]
  • Bump tomcat-jdbc from 9.0.14 to 9.0.16 in /modules/mariadb (#1225) @dependabot[bot]
  • Bump java-client from 2.7.2 to 2.7.3 in /modules/couchbase (#1222) @dependabot[bot]
  • Bump mockito-core from 2.23.4 to 2.24.0 in /core (#1210) @dependabot[bot]
  • Bump lombok from 1.18.4 to 1.18.6 in /examples (#1233) @dependabot[bot]
  • Bump assertj-core from 3.11.1 to 3.12.0 in /modules/neo4j (#1242) @dependabot[bot]
  • Bump assertj-core from 3.11.1 to 3.12.0 in /core (#1241) @dependabot[bot]
  • Bump assertj-core from 3.11.1 to 3.12.0 in /modules/pulsar (#1244) @dependabot[bot]
  • Bump assertj-core from 3.11.1 to 3.12.0 in /modules/kafka (#1243) @dependabot[bot]
  • Bump okhttp from 3.12.1 to 3.13.1 in /examples (#1268) @dependabot[bot]
  • Bump influxdb-java from 2.14 to 2.15 in /modules/influxdb (#1271) @dependabot[bot]
  • Bump assertj-core from 3.12.0 to 3.12.1 in /modules/pulsar (#1287) @dependabot[bot]
  • Bump assertj-core from 3.12.0 to 3.12.1 in /modules/neo4j (#1286) @dependabot[bot]
  • Bump assertj-core from 3.12.0 to 3.12.1 in /core (#1284) @dependabot[bot]
  • Bump assertj-core from 3.12.0 to 3.12.1 in /modules/kafka (#1285) @dependabot[bot]
  • Bump pulsar-client from 2.2.1 to 2.3.0 in /modules/pulsar (#1267) @dependabot[bot]
  • Bump lombok from 1.18.4 to 1.18.6 in /examples (#1261) @dependabot[bot]
  • Bump kafka-clients from 2.1.0 to 2.1.1 in /modules/kafka (#1251) @dependabot[bot]
  • Bump slf4j-api from 1.7.25 to 1.7.26 in /examples (#1262) @dependabot[bot]
  • Bump mockito-core from 2.24.0 to 2.24.5 in /core (#1255) @dependabot[bot]
  • Bump elasticsearch-rest-client from 6.6.0 to 6.6.1 in /modules/elasticsearch (#1259) @dependabot[bot]
  • Bump transport from 6.6.0 to 6.6.1 in /modules/elasticsearch (#1260) @dependabot[bot]
  • Bump selenium-firefox-driver from 3.14.0 to 3.141.59 in /examples (#1263) @dependabot[bot]
  • Bump mongo-java-driver from 3.9.1 to 3.10.1 in /core (#1234) @dependabot[bot]
  • Bump selenium-chrome-driver from 3.14.0 to 3.141.59 in /examples (#1264) @dependabot[bot]
  • Bump selenium-remote-driver from 3.14.0 to 3.141.59 in /examples (#1265) @dependabot[bot]
  • Bump commons-codec from 1.11 to 1.12 in /core (#1238) @dependabot[bot]
  • Bump cassandra-driver-core from 3.6.0 to 3.7.1 in /modules/cassandra (#1290) @dependabot[bot]
  • Bump java-client from 2.7.3 to 2.7.4 in /modules/couchbase (#1275) @dependabot[bot]
  • Bump slf4j-api from 1.7.25 to 1.7.26 in /core (#1254) @dependabot[bot]
  • Bump neo4j-java-driver from 1.7.2 to 1.7.3 in /modules/neo4j (#1297) @dependabot[bot]

1.10.6

29 Jan 16:37

Choose a tag to compare

What's Changed

  • Fix breaking changes to Dependabot config.yml (#1128) @feelepxyz
  • Ensure that sqlserver jdbc url is supported by container provider (#989, fixes #988) @neetkee

🚀 Features

  • Make dynalite container extend GenericContainer, for JUnit5 support (#1114) @bijukunjummen
  • Make it possible to turn off Ryuk with an environment variable (#1181, fixes #1023, #700) @bsideup. For users with CI environments that do not need/do not allow the Ryuk container to operate (such as Bitbucket Pipelines), it may now be disabled by setting an environment variable. Please see the docs.

📖 Documentation

📦 Dependency updates

  • Bump HikariCP from 3.2.0 to 3.3.0 in /modules/spock (#1117) @dependabot[bot]
  • Bump aws-java-sdk-s3 from 1.11.475 to 1.11.479 in /modules/localstack (#1130) @dependabot[bot]
  • Bump aws-java-sdk-dynamodb from 1.11.475 to 1.11.479 in /modules/dynalite (#1129) @dependabot[bot]
  • Bump amqp-client from 5.5.1 to 5.5.2 in /core (#1122) @dependabot[bot]
  • update mockserver to 5.5.1 and bind to port 1080 which is default (#1109) @lanwen
  • Bump HikariCP from 3.2.0 to 3.3.0 in /modules/junit-jupiter (#1120) @dependabot[bot]
  • Bump spring-boot-dependencies from 2.1.1.RELEASE to 2.1.2.RELEASE in /examples (#1149) @dependabot[bot]
  • Bump spring-boot-maven-plugin from 2.1.1.RELEASE to 2.1.2.RELEASE in /examples (#1148) @dependabot[bot]
  • Bump rest-assured from 3.2.0 to 3.3.0 in /modules/vault (#1143) @dependabot[bot]
  • Bump mysql-connector-java from 8.0.13 to 8.0.14 in /modules/spock (#1173) @dependabot[bot]
  • Bump mysql-connector-java from 8.0.13 to 8.0.14 in /modules/junit-jupiter (#1172) @dependabot[bot]
  • Bump mysql-connector-java from 8.0.13 to 8.0.14 in /modules/mysql (#1171) @dependabot[bot]
  • Bump amqp-client from 5.5.2 to 5.5.3 in /core (#1170) @dependabot[bot]

1.10.5

02 Jan 13:40
6324afa

Choose a tag to compare

What's Changed

This release was primarily created to resolve #1111.

📦 Dependency updates

  • Bump cassandra-driver-core from 3.5.1 to 3.6.0 in /modules/cassandra (#1050) @dependabot[bot]

1.10.4

29 Dec 08:43
4dc107a

Choose a tag to compare

⚠️ There was a problem with the binaries release process for 1.10.4, meaning that some outdated v1.10.3 JARs may have been published with the 1.10.4 version label. Please use 1.10.5 or higher instead of this release. See #1111 for a description of the problem.

What's Changed

This release contains a few minor bug fixes and features, plus a raft of small dependency updates.

🚀 Features

  • Support TmpFS mappings (#1021) @malltshik. Containers may now have a TmpFS volume mounted, e.g.:
     GenericContainer container = new GenericContainer(...)
         .withTmpFs(singletonMap("/data", "rw"))
  • Enable line terminator matching for LogMessageWaitStrategy (#982) @bengtbrodersen0042
  • SQL compound statement awareness in ScriptUtils. This feature allows stored procedures to be used in database init scripts (#579) @rnorth

🐛 Bug Fixes

  • Start shared containers in beforeAll callback (Jupiter) (#1020) @kiview
  • Fix StreamType.RAW frame processing when using TTY mode with containers(#1101) @vektory79

📖 Documentation/Internal

📦 Dependency updates

We've recently enabled dependabot, and as a result have more than a few dependency updates in this release:

Click to expand...
  • Bump annotations from 15.0 to 16.0.3 in /core (#1027) @dependabot[bot]
  • Bump slf4j-api from 1.7.7 to 1.7.25 in /examples (#1034) @dependabot[bot]
  • Bump jedis from 2.8.0 to 3.0.0 in /core (#1031) @dependabot[bot]
  • Bump rest-assured from 3.0.0 to 3.2.0 in /modules/vault (#1044) @dependabot[bot]
  • Bump vibur-dbcp from 9.0 to 22.2 in /modules/mysql (#1042) @dependabot[bot]
  • Bump postgresql from 9.4.1212 to 42.2.5 in /examples (#1037) @dependabot[bot]
  • Bump lombok from 1.16.6 to 1.18.4 in /examples (#1039) @dependabot[bot]
  • Bump aws-java-sdk-s3 from 1.11.126 to 1.11.475 in /modules/localstack (#1046) @dependabot[bot]
  • Bump okhttp from 3.6.0 to 3.12.0 in /examples (#1035) @dependabot[bot]
  • Bump jaxb-api from 2.3.0 to 2.3.1 in /core (#1029) @dependabot[bot]
  • Bump neo4j-java-driver from 1.7.1 to 1.7.2 in /modules/neo4j (#1045) @dependabot[bot]
  • Bump jetty from 6.1.25 to 6.1.26 in /modules/selenium (#1047) @dependabot[bot]
  • [Security] Bump logback-classic from 1.1.2 to 1.2.3 in /examples (#1060) @dependabot[bot]
  • Bump commons-dbutils from 1.6 to 1.7 in /modules/mysql (#1040) @dependabot[bot]
  • Bump vibur-dbcp from 9.0 to 22.2 in /modules/mariadb (#1063) @dependabot[bot]
  • Bump HikariCP from 2.6.1 to 3.2.0 in /modules/spock (#1053) @dependabot[bot]
  • Bump HikariCP-java6 from 2.3.8 to 2.3.13 in /modules/mariadb (#1064) @dependabot[bot]
  • Bump HikariCP-java6 from 2.3.8 to 2.3.13 in /modules/postgresql (#1051) @dependabot[bot]
  • Bump commons-dbutils from 1.6 to 1.7 in /modules/postgresql (#1048) @dependabot[bot]
  • Bump tomcat-jdbc from 8.5.4 to 9.0.14 in /modules/mariadb (#1061) @dependabot[bot]
  • Bump tomcat-jdbc from 8.5.4 to 9.0.14 in /modules/mysql (#1038) @dependabot[bot]
  • Bump aws-java-sdk-dynamodb from 1.11.126 to 1.11.475 in /modules/dynalite (#1059) @dependabot[bot]
  • Bump HikariCP-java6 from 2.3.8 to 2.3.13 in /modules/mysql (#1041) @dependabot[bot]
  • Bump HikariCP from 2.6.1 to 3.2.0 in /modules/junit-jupiter (#1072) @dependabot[bot]
  • Bump postgresql from 42.0.0 to 42.2.5 in /modules/junit-jupiter (#1075) @dependabot[bot]
  • Bump jedis from 2.8.0 to 3.0.0 in /examples (#1085) @dependabot[bot]
  • Bump maven-compiler-plugin from 3.1 to 3.8.0 in /examples (#1084) @dependabot[bot]
  • Bump mockito-all from 1.9.5 to 1.10.19 in /examples (#1083) @dependabot[bot]
  • Bump okhttp from 3.12.0 to 3.12.1 in /examples (#1081) @dependabot[bot]
  • Bump spinach from 0.2 to 0.3 in /examples (#1032) @dependabot[bot]
  • Bump commons-dbutils from 1.6 to 1.7 in /modules/mariadb (#1073) @dependabot[bot]
  • Bump amqp-client from 3.5.3 to 5.5.1 in /core (#1076) @dependabot[bot]
  • Bump postgresql from 9.3-1101-jdbc41 to 42.2.5 in /modules/postgresql (#1049) @dependabot[bot]
  • Bump elasticsearch-rest-client from 6.4.1 to 6.5.4 in /modules/elasticsearch (#1058) @dependabot[bot]
  • Bump mysql-connector-java from 6.0.6 to 8.0.13 in /modules/junit-jupiter (#1071) @dependabot[bot]
  • Bump visible-assertions from 1.0.5 to 2.1.1 in /examples (#1082) @dependabot[bot]
  • Bump mysql-connector-java from 5.1.35 to 8.0.13 in /modules/mysql (#1043) @dependabot[bot]
  • Bump influxdb-java from 2.10 to 2.14 in /modules/influxdb (#1070) @dependabot[bot]
  • Bump jersey-common from 2.23.1 to 2.27 in /core (#1078) @dependabot[bot]
  • Bump java-client from 2.6.1 to 2.7.2 in /modules/couchbase (#1036) @dependabot[bot]
  • Bump mysql-connector-java from 6.0.6 to 8.0.13 in /modules/spock (#1056) @dependabot[bot]
  • Bump spring-boot-dependencies from 2.0.1.RELEASE to 2.1.1.RELEASE in /examples (#1096) @dependabot[bot]
  • Bump testng from 6.9.10 to 6.14.3 in /examples (#1095) @dependabot[bot]
  • Bump visible-assertions from 2.1.1 to 2.1.2 in /examples (#1094) @dependabot[bot]
  • Bump gson from 2.5 to 2.8.5 in /examples (#1092) @dependabot[bot]
  • Bump kafka-clients from 1.0.0 to 2.1.0 in /modules/kafka (#1062) @dependabot[bot]
  • Bump commons-io from 2.5 to 2.6 in /core (#1086) @dependabot[bot]
  • Bump jedis from 2.8.0 to 3.0.0 in /modules/junit-jupiter (#1065) @dependabot[bot]
  • Bump mongo-java-driver from 3.0.2 to 3.9.1 in /core (#1089) @dependabot[bot]
  • Bump postgresql from 42.0.0 to 42.2.5 in /modules/spock (#1057) @dependabot[bot]
  • Bump spring-boot-maven-plugin from 2.0.1.RELEASE to 2.1.1.RELEASE in /examples (#1093) @dependabot[bot]
  • Bump mariadb-java-client from 1.5.9 to 2.3.0 in /modules/mariadb (#1068) @dependabot[bot]
  • Bump junit-jupiter-engine from 5.3.1 to 5.3.2 in /modules/junit-jupiter (#1066) @dependabot[bot]
  • Bump transport from 6.4.1 to 6.5.4 in /modules/elasticsearch (#1055) @dependabot[bot]
  • Bump okhttp from 3.10.0 to 3.12.1 in /core (#1080) @dependabot[bot]
  • Bump mockito-core from 1.10.19 to 2.23.4 in /core (#1077) @dependabot[bot]
  • Auto merge /examples dependencies (#1097) @bsideup
  • Bump guava from 18.0 to 23.0 in /examples (#1099) @dependabot[bot]
  • Bump json from 20160810 to 20180813 in /examples (#1098) @dependabot[bot]
  • Bump pulsar-client from 2.2.0 to 2.2.1 in /modules/pulsar (#1091) @dependabot[bot]
  • Bump assertj-core from 3.8.0 to 3.11.1 in /modules/kafka (#1067) @dependabot[bot]
  • Bump visible-assertions from 2.1.1 to 2.1.2 in /core (#1088) @dependabot[bot]
  • Bump javax.annotation-api from 1.3.1 to 1.3.2 in /core (#1087) @dependabot[bot]
  • Bump junit-jupiter-api from 5.3.1 to 5.3.2 in /modules/junit-jupiter (#1069) @dependabot[bot]
  • Bump jna-platform from 4.5.1 to 5.2.0 in /core (#1079) @dependabot[bot]
  • Bump jedis from 3.0.0 to 3.0.1 in /examples (#1103) @dependabot[bot]
  • Bump jedis from 3.0.0 to 3.0.1 in /core (#1105) @dependabot[bot]
  • Bump jedis from 3.0.0 to 3.0.1 in /modules/junit-jupiter (#1104) @dependabot[bot]
  • Bump assertj-core from 3.8.0 to 3.11.1 in /core (#1090) @dependabot[bot]
  • Bump assertj-core from 3.10.0 to 3.11.1 in /modules/pulsar (#1054) @dependabot[bot]

1.10.3

18 Dec 16:04
c8ec853

Choose a tag to compare

🎉 Neo4j container class is here 🎉

Thanks to @michael-simons, we now have Neo4j as a provided container class. Now creating a container to test against Neo4j is as easy as writing new Neo4jContainer(). Please check out the docs for more information and examples.

What else has Changed

As always, thank you to everyone who has contributed in any way to this release.

1.10.2

26 Nov 20:58

Choose a tag to compare

What's Changed

  • (Docs): Show appropriate build tool scope/configuration when showing Testcontainers Maven/Gradle dependency declarations (#969) @bmuschko
  • Support using MariaDB JDBC URL to set database name, user and password (#950) @guss77
  • Add TcpHost support to ElasticsearchContainer (#956) @reda-alaoui
  • Update Docker Hub repository used for MS SQL Server (#992) @chungngoops
  • Allow to set Shared Memory size (shmSize) for GenericContainer (#957, #952) @fzakaria

1.10.1

08 Nov 06:58

Choose a tag to compare

What's Changed

  • Adjust API of ElasticsearchContainer so as to not expose shaded transient dependency (#964, fixes #958) Note: This means that usages of elasticsearchContainer.getHost() should be replaced with HttpHost.create(elasticsearchContainer.getHttpHostAddress()) @rnorth
  • Add self-typing generics to ElasticsearchContainer (#963, fixes #962) @kiview
  • Publish artifacts to Maven Local before running examples on CircleCI (#903) @kiview

1.10.0

05 Nov 22:24
921726d

Choose a tag to compare

It's 1.10.0! 🎆

We have some exciting new features in this release:

Official JUnit 5 support! 5️⃣

Our users have been asking for this for a long time, and we're delighted to finally add an official JUnit 5 (Jupiter) extension to Testcontainers. Thanks to @britter and several members of the JUnit team for their support and contribution!

Usage couldn't be easier:

@Testcontainers
class SomeTest {

    @Container
    private MySQLContainer mySQLContainer = new MySQLContainer();

    @Test
    void someTestMethod() {
        String url = mySQLContainer.getJdbcUrl();
         // create a connection and run test as normal
    }
}

Check out the documentation for more information.

Elasticsearch container class! 😎

Testing against elasticsearch just became much easier, thanks to this great contribution by @dadoonet.

This is based on the official Docker image provided by elastic. Check out the docs to see how easy it is to use.

What else has Changed

1.9.1

25 Sep 09:53
0f25d00

Choose a tag to compare

What's Changed

  • Fix AutoRemove of Ryuk container (#882) @bsideup
  • Fix HttpWaitStrategy.forStatusCodeMatching used with HttpWaitStrategy.forStatusCode (#881) @dadoonet

1.9.0

23 Sep 20:09

Choose a tag to compare

🎉 1.9.0 is here and it's a big release! 🎉

Many bugs were squashed, and we have some awesome new features for you. As always, thanks so much to our growing list of amazing contributors! Everybody on this list deserves thanks (and beers!).

Here are some highlights of the 1.9.0 release:

A vastly improved way to expose host ports to containers ✨

It's similar to host.docker.internal, except this should work anywhere that Testcontainers works. It's like magic:

// tell Testcontainers which host ports to expose to your containers
Testcontainers.exposeHostPorts(someHostPortNumber);

// later, just give your container this address to use to reach back to the host:
address = "http://host.testcontainers.internal:" + someHostPortNumber;

For a more complete example see here.

Npipe support for Docker on Windows 🎈

Testcontainers now uses OkHttp by default to talk to Docker, with Npipe support. This means no more need to configure Docker for Windows to use TCP mode.

Many improvements to registry authentication 🔑

Support for Docker credential stores/credential helpers has continued to be improved, and is now supported on Windows!

Many updates and improvements to the Couchbase module 🎊

And lots, lots more:

What's Changed

Changed

  • Switch to OkHttp as default transport (#853) @bsideup
  • Add cross-platform support for exposing host ports to containers using SSH port forwarding (#806) @bsideup
  • Add ClickHouse module (#846) @VladRassokhin
  • Allow Couchbase container to support random ports using socat sidecar container (#815) @Kaidowei
  • Add support to override default username and password in Oracle XE container (#823) @kiptix
  • Docs: Added example of using Kafka Test Containers (#840) @iNikem
  • Tests: replace boolean parameters with EnumSet in JDBCDriverTest (#849) @VladRassokhin
  • Improve copyFileToContainer support (#829) @bsideup
  • Allow specifying the rate limiter for AbstractWaitStrategy (#838, #837) @chibenwa
  • Make MYSQL_ROOT_PASSWORD and MYSQL_PASSWORD the same value (#857) @dougEfresh
  • Update mockserver to 5.4.1 (#832) @lanwen
  • Update Pulsar to 2.1.0 (#824) @haphut
  • Update CouchbaseContainer to 5.1.1 (#830) @Kaidowei
  • Update docker-java to 3.1.0-rc4 (fixes support for identitytoken auth - #293)
  • Add support for Postgis to JDBC driver (#864) @kiview
  • Update Pulsar Container (#858) @aahmed-se
  • Mark Windows npipe support as stable (with a fix) (#865) @bsideup
  • Enable RegistryAuthLocator for Windows, improve, and add Windows test coverage (#868) @aulea
  • Remove Netty classes from OkHttpInvocationBuilder (#869) @bsideup
  • Update Pulsar to 2.1.1 (#874) @haphut
  • Check FS mounting lazily (#875) @bsideup
  • Allow configuration of user settings to support couchbase community version (#777) @kstrek

Fixed

  • Improve support for docker registry authentication and docker hub private registry credentials (#845) @rnorth
  • Fix NginxContainer wait behaviour (#818) @rnorth
  • Fix inverted logic in Selenium module - ensures that correct sessions are captured when using RECORD_FAILING mode (#821) @bsideup
  • Fix deadlock when ryuk does not acknowledge filters (#843) @thammerl
  • Various CouchbaseContainer fixes (#830) @Kaidowei
  • CouchbaseContainer: Fix java.net.SocketException exception in stop() (#859) @dnault
  • Fix UnixDomainSocketInitializer to use configured docker host in connect() (#855) @aantoniadisatypon
  • Fix local docker-compose support on Windows10 (#863) @kiview
  • MockServerContainer: remove dependency to java api (#833) @lanwen
  • Guard against potential NPE if startup fails before container creation (#876) @rnorth
  • Remove unnecessary start() call in initCouchbaseContainer() method - improves stability of tests based on AbstractCouchbaseTest (#877) @kiview