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.77k stars 271 forks source link

feat: Add Papercut module #1044

Closed TechLiam closed 10 months ago

TechLiam commented 11 months ago

What does this PR do?

Add Testcontainers.Papercut

Why is it important?

Papercut is a testing SMTP server that also has a nice, easy REST API to get the messages in the inbox. When doing integration testing it is helpful to be able to send emails and have the ability to check their contents by having this container developers will be able to quickly spin up an SMTP server and check the messages delivered to it without having to send emails to a proper SMTP server and email address.

How to test this PR

Unit/Integration tests have been added to the solution that checks the container starts and can have emails sent to it. It also checks the helper methods for getting the emails delivered back out of Papercut from the REST API.

netlify[bot] commented 11 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit 840198e42b264a89e9ff7cc641d788345d52562e
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/655505705f496c00088a2915
Deploy Preview https://deploy-preview-1044--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.

TechLiam commented 10 months ago

@HofmeisterAn is there anything else or is this PR good to merge now?

HofmeisterAn commented 10 months ago

@HofmeisterAn is there anything else or is this PR good to merge now?

I've made some improvements. WDYT? If you're good with it, we are ready to merge.