Skip to content

Releases: testcontainers/testcontainers-java

1.10.3

18 Dec 16:04
c8ec853
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

1.9.0-rc2

21 Sep 07:25
75e0ee4
Compare
Choose a tag to compare

What's Changed

Changed

  • 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

Fixed

  • Fix local docker-compose support on Windows10 (#863) @kiview
  • MockServerContainer: remove dependency to java api (#833) @lanwen

1.9.0-rc1

09 Sep 20:40
d127fd7
Compare
Choose a tag to compare

Please note: this release candidate build is not published to Maven Central, but is published to Bintray.

What's Changed

Changed

  • Switch to OkHttp as default transport (with opt-inable Npipe support) (#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)

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

1.8.3

05 Aug 20:59
Compare
Choose a tag to compare

Fixed

  • Fixed with* methods of CouchbaseContainer (#810)
  • Fix problem with gzip encoded streams (e.g. copy file from container), by adding decompression support to netty exec factory (#817, fixes #681, relates to docker-java/docker-java#1079)

1.8.2

31 Jul 07:21
e1bf156
Compare
Choose a tag to compare

Fixed

  • Add support for transparently using local images with docker-compose (#798, fixes #674)
  • Fix bug with Dockerfile image creation with Docker for Mac 18.06-ce (#808, fixes #680)

Changed

  • Update Visible Assertions to 2.1.1 (#779).
  • KafkaContainer optimization (group.initial.rebalance.delay.ms=0) (#782).