-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Papercut module #1044
Conversation
✅ Deploy Preview for testcontainers-dotnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. Definitely a cool module. Can we please remove the Papercut client functionalities? This isn't the responsibility of Testcontainers.
Moved client models to test project as this uses them but it not used in package project now Added constants for Port numbers Moved using statements to Usings.cs file Added delegate for getting public SMTP port number
…nto TechLiam-develop
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you're good with the recent changes. Thanks for the pull request. Great first Testcontainers contribution 👍. I will merge it later the day.
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.