0.17.0
版本发布时间: 2024-05-27 04:47:42
testcontainers/testcontainers-rs最新发布版本:0.22.0(2024-08-31 03:22:23)
Migration guide
- The largest change of this release is switch to fallible API (instead of panics)
- the easiest way to use
unwrap
orexpect
for alltestcontainers
operations. - or you can cast error if your tests are already
Result
based
- the easiest way to use
- The
Image::exec_after_start
method returns aResult
, so if you have an implementation ofImage
that usesexec_after_start
, it's important to handle possible errors (e.g required port not found) - If you encounter container startup timeout, adjust it with
RunnableImage::with_startup_timeout
- Change
testcontainers::CgroupnsMode
totestcontainers::core::CgroupnsMode
if your code rely on this. -
exec
now returns a result with ability to get exit code and logs of the command. You can ignore the result if you don't need this.
Details
Bug Fixes
- Collect bridge IP address correctly (#626)
Features
- Impl
Error
forWaitError
(#629) - [❗] Extend
exec
interface to return logs and exec code (#631) - Ability to access container logs (#633)
- [❗] Switch to fallible API (#636)
- Make container and exec logs
Send
able (#637) - Map container not found error to
eof
for container log streams (#639) - Expose follow flag for
stdout
andstderr
(#640) - Add ability to read container logs into
Vec
(#641) - [❗] Add container startup timeout with default of 1 minute (#643)
Miscellaneous Tasks
- Fix clippy warning without features enabled (#632)