Update testcontainers-java monorepo to v1.18.1 #224
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.17.6
->1.18.1
1.17.6
->1.18.1
Release Notes
testcontainers/testcontainers-java
v1.18.1
Compare Source
What's Changed
@Container
to be used as a meta-annotation (#6914) @eddumelendez🚀 Features & Enhancements
🐛 Bug Fixes
📖 Documentation
on_failure
page (#6784) @kiview🧹 Housekeeping
📦 Dependency updates
v1.18.0
Compare Source
Core module
MySQLContainer
are now automatically compatible with their corresponding images with thelibrary
prefixtestcontainers/vnc
has been bumped to version 1.3.0, which brings ARM support.tc
prefix has been added to display all container logs ortc.<image-name:tag>
for a specific one. Check the logging docs.WaitStrategy
,ShellStrategy
. It can also be used by callingWait.forSuccessfulCommand(<command>)
New integration
Jib has been integrated to Testcontainers in order to take advantage of the nice API it provides to create containers
New modules 🆕
CrateDB module
In order to use
CrateDBContainer
, declare the dependency in your pom.xml/build.gradletestImplementation "org.testcontainers:cratedb:1.18.0"
Choose a crate image version and use it as declared below with your postgres driver
Solace Module
In order to use
SolaceContainer
, declare the dependency in your pom.xml/build.gradletestImplementation "org.testcontainers:solace:1.18.0"
Now, you can use a Solace PubSub running in a container and connecting via AMQP by doing the following:
More information about
SolaceContainer
can be found in the documentation.Container modules
CockroachDB
Starting with
cockroachdb/cockroach:22.1.0
, there is support for setting the username, password and database name via environment variables. Now, the Testcontainers module provides convenient setters:GCloud module
Google has released a new image which supports ARM and therefore
BigtableEmulatorContainer
,DatastoreEmulatorContainer
,FirestoreEmulatorContainer
,PubSubEmulatorContainer
now support it as well.So, if previously you were doing something like
Now, you can simply do
JUnit Jupiter Module
@Testcontainers
offers a new attributeparallel
, which start those containers classes annotated by@Container
Kafka Module
Self-managed or Kraft mode (a.k.a Zookeeperless) support has been added
LocalStack Module
SERVICES
environment variable became optional in version 0.13.0 and instead LocalStack will initialize a service once the first request is served. So, nowadaysLocalStackContainer
can be used just like this:Also, LocalStack module supports version 2.0. It is highly recommended to use the latest version of LocalStack images.
Last but not least, dependency on AWS SDK V1 was dropped. So, that means by upgrading to version 1.18.0, the dependency can be removed if not used directly.
MongoDB Module
MongoDBContainer
by default has been enabling ReplicaSet mode. Starting in this version, sharding has been added.Selenium Module
Selenium 4 has built-in support for Microsoft Edge (which is based on Chromium) and now it is supported by
BrowserWebDriverContainer
as well:More
🚀 Features & Enhancements
☠️ Deprecations
🐛 Bug Fixes
allowInsecure()
onHttpWaitStrategy
for non-localhost Docker daemon (#6314) @kiviewConfiguration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.