testcontainers / testcontainers-rs

A library for integration-testing against docker containers from within Rust.
https://rust.testcontainers.org
Apache License 2.0
697 stars 133 forks source link

fix!: drop `Clone` impl for `ContainerRequest` #680

Closed DDtKey closed 2 months ago

DDtKey commented 2 months ago

Image can be cloned just fine, but ContainerRequest is not intended to be, and is not, a truly safe structure for cloning. It allows to override unique container properties: container name, port mappings and log consumers (soon).

If necessary, you can always use a reusable constructor/method to create multiple similar ContainerRequests.

netlify[bot] commented 2 months ago

Deploy Preview for testcontainers-rust ready!

Name Link
Latest commit c8eca8d4b0a4406d1ee87c9fd68109a79dc83669
Latest deploy log https://app.netlify.com/sites/testcontainers-rust/deploys/6689b49623d8ed000849a841
Deploy Preview https://deploy-preview-680--testcontainers-rust.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.