testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.65k stars 250 forks source link

feat: Add URL-based resource mapping container builder API #1118

Closed 0xced closed 4 months ago

0xced commented 4 months ago

What does this PR do?

This pull request introduces a new URL-based resource mapping, allowing to easily copying a file accessible over HTTP or HTTPS directly into a container before it starts, just like one could copy a local file.

Why is it important?

The UriResourceMapping is straightforward to write and would not need to be included in the Testcontainers library but I think having it built-in is a nice addition.

netlify[bot] commented 4 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit 551608615f9c42d2b1160d9f8ea71c61af0cd151
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/65d0ad90c34381000801338a
Deploy Preview https://deploy-preview-1118--testcontainers-dotnet.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.