github testcontainers/testcontainers-dotnet 4.8.0

latest releases: 4.9.0, 4.8.1
2 months ago

What's Changed

Thank you to all the contributors ๐Ÿ™Œ.

In version 4.7.0, we noticed that the reuse hash could change depending on the order of dictionary values. This has been fixed to ensure that dictionary values are processed in a consistent order when generating the reuse hash. As a result, the reuse hash will likely change again with 4.8.0.

Wait strategies now default to the Running mode. This mode expects the container to remain running throughout startup. If the container exits unexpectedly, Testcontainers will throw a ContainerNotRunningException that includes the exit code and container logs.

The container startup callback now includes an additional overload that provides the actual container configuration. If you implement IContainerBuilder<TBuilderEntity, TContainerEntity>, you need to add the container configuration (e.g., IContainerConfiguration) as a third generic type constraint to IContainerBuilder.

IContainerBuilder.WithResourceMapping and IContainer.CopyAsync now include two new optional arguments: uid and gid. If you do not need to specify those, use named arguments for the existing parameters: fileMode or ct.

โš ๏ธ Breaking Changes

๐Ÿš€ Features

๐Ÿ› Bug Fixes

๐Ÿ“– Documentation

  • docs: Remove obsolete UntilOperationIsSucceeded wait strategy example (#1551) @ascott18
  • docs: Fix link to Ryuk in IContainerBuilder.WithAutoRemove code comment (#1546) @hojmark

๐Ÿงน Housekeeping

Don't miss a new testcontainers-dotnet release

NewReleases is sending notifications on new releases.