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 mailpit as module #1134

Open feslima opened 4 months ago

feslima commented 4 months ago

What does this PR do?

Adds Testcontainers.Mailpit as a module to the project.

Why is it important?

Mailpit is an extremely useful tool for testing email related features and I think having it as a module to use inside the Testcontainers .NET C# ecosystem is worth the effort.

Related issues

Didn't find any.

How to test this PR

I've added simple a test that ensures the SMTP and Web servers are working accordingly by sending the email and querying the REST api for that specific email.

To run this test in your shell:

dotnet test "tests/Testcontainers.Mailpit.Tests/Testcontainers.Mailpit.Tests.csproj"

Follow-ups

If this PR is acceptable, I think there is still some tidying-up of the .sln files to keep consistency as I've seen done in other merged PRs.

netlify[bot] commented 4 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit a72409a1f35a679e4b76f9bd8ed2feb425ce7ca3
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/65e36cda620886000857e768
Deploy Preview https://deploy-preview-1134--testcontainers-dotnet.netlify.app/modules
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.

HofmeisterAn commented 3 months ago

Sorry for the late response. I will try to review the PR next week :v:.

HofmeisterAn commented 2 months ago

Relates to #1153.