Releases: testcontainers/testcontainers-java
1.11.0
What's Changed
🚀 Features
- Add Toxiproxy module (#1330) @rnorth
- Added fsync=off option by default for postgresql (#1280, #1256) @mumukiller
- Add JDBC custom credential support for postgres (#1293) @manikmagar
- get exitcode from inspectExecCmd (#1318, #1319) @dmarkhas
- Remove netty transport, rework shading (#1307) @bsideup
- Update BrowserWebDriverContainer to honor existing no_proxy setting (#929) @roamingthings
- Add support for creating Cluster objects without JMX reporting (#1199) @brasse
- Allow TC_INITSCRIPT to support absolute/relative path via file: URI (#1329) @basicfu, @rnorth
🐛 Bug Fixes
- Start ambassador only if mapping configured (#1327, #1328) @ftardif
- Add CredsStore validation in RegistryAuthLocator (#1303) @NikitaZhevnitskiy
📦 Dependency updates
- Bump mockito-core from 2.24.5 to 2.25.0 in /core (#1294) @dependabot[bot]
- Bump transport from 6.6.1 to 6.6.2 in /modules/elasticsearch (#1302) @dependabot[bot]
- Bump elasticsearch-rest-client from 6.6.1 to 6.6.2 in /modules/elasticsearch (#1301) @dependabot[bot]
- Bump junit-jupiter-api from 5.4.0 to 5.4.1 in /modules/junit-jupiter (#1311) @dependabot[bot]
- Bump assertj-core from 3.12.1 to 3.12.2 in /modules/pulsar (#1312) @dependabot[bot]
- Bump mockito-core from 2.25.0 to 2.25.1 in /core (#1313) @dependabot[bot]
- Bump junit-jupiter-engine from 5.4.0 to 5.4.1 in /modules/junit-jupiter (#1310) @dependabot[bot]
- Bump assertj-core from 3.12.1 to 3.12.2 in /modules/kafka (#1316) @dependabot[bot]
- Bump assertj-core from 3.12.1 to 3.12.2 in /core (#1314) @dependabot[bot]
- Bump assertj-core from 3.12.1 to 3.12.2 in /modules/neo4j (#1315) @dependabot[bot]
- Bump mariadb-java-client from 2.4.0 to 2.4.1 in /modules/mariadb (#1317) @dependabot[bot]
- Bump tomcat-jdbc from 9.0.16 to 9.0.17 in /modules/mysql (#1321) @dependabot[bot]
- Bump tomcat-jdbc from 9.0.16 to 9.0.17 in /modules/mariadb (#1322) @dependabot[bot]
1.10.7
What's Changed
🚀 Features
- Add additional convenience methods for Neo4j containers (#1246) @michael-simons
- Allow to change password in MSSQLServerContainer (#885) @ecostanzi
🐛 Bug Fixes
- Allow extension of Neo4jContainer class (#1195) @portovep
- refactor: robust version parsing (#1273, fixes #1220) @zregvart
- Check Docker version according to checksEnabled flag (#1231, fiex #1220) @aivinog1
📖 Documentation
- Correct maven artifactId for postgresql (#1203) @ttreuthardt
- Use withCapabilities in Webdriver docs (#1197) @mkutz
- Change megabytes for bytes in withSharedMemorySize method documentation (#1215) @aidamanna
- Migrate examples project to Gradle subproject (#1177) @kiview
- Example cucumber test (#1180) @stsefanenko
- minor word inversion (#1219) @fredclose
- Fix failing docs example test (#1300) @rnorth
📦 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
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
- Add "exposing host port" example (#1152) @stsefanenko
- Redo documentation with mkdocs (#1150) @rnorth
- Modernize Spring boot example (#1175) @artjomka
- Fix typo in Postgresql gradle dependency (#1182) @danieldisu
- Add "singleton container" example (#1178) @chungngoops
📦 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
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
⚠️ 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
- Fix broken link to Oracle test (#1018) @adoroszlai
- Simplify selenium example (#1008) @rnorth
- Simplify GitLab CI documentation (#1016) @TjeuKayim
- Add dependabot.yml (#1026) @rnorth
- Enable automatic release version numbering (#1025) @rnorth
- Add categories to release drafter (#1074) @rnorth
📦 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
🎉 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.
- Add Neo4j-OGM to 'Who is using Testcontainers'. (#996) @michael-simons
- [Docs] Change
withDockerfileFromBuilder
example to use expression Lamda (#975) @bmuschko - Bump org.mock-server dependency set from 5.4.1 to 5.5.0 (#983) @bbednarek
- Disable Gradle daemon (#1004) @rnorth
- Use ChromeOptions and FirefoxOptions instead of DesiredCapabilities (#995) @pavelpp
- Remove SLF4J Profiler (#1002) @rnorth
1.10.2
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
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 withHttpHost.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
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
- Test against OpenJDK 11 (#883) @bsideup
- Use latest available VNC recorder image (#888) @rnorth
- Add missing argument to log statement (#895) @atomfrede
- Docs: Added an example using TestNG (#778) (#893) @vpondala
- Docs: Add Travis job for examples (#897) @kiview
- Docs: Update ROADMAP link in CONTRIBUTING.md (#901) @chungngoops
- Add property to start ryuk in privileged mode (#894) @atomfrede
- Docs: Adds description for JUnit 5 usage (#911) @artjomka and (#918) @TimRiemer
- Support empty password for mysql (#899) @chungngoops
- Fix examples in Couchbase README.md (#935) @kiview
- Add configuration for probot-stale bot (#907) @rnorth
- Remove old docs (#890) @rnorth
- Add WARN log if provided Couchbase password offends default policy (#936) @kiview
- Update commons-compress to 1.18 (#943) @nickbabcock
- Add Elasticsearch testcontainer (#826) @dadoonet
- Update Pulsar to 2.2.0 (#941) @haphut
- remove @nullable annotations and dependency on com.google.code.findbugs:jsr305 (#920) @dbyron0
- JUnit 5 extension (#887) @britter, (#947) @kiview
- Add JUnit5/Jupiter usage instructions to docs (#954) @kiview
- Support init script at JdbcDatabaseContainer level (#575) @AnkBurov
- Activate gradle build scans for CI builds (#916) @britter