Email client: usage in e2e tests #25776
Labels
Communication - Email
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Service
This issue points to a problem in the service.
Is your feature request related to a problem? Please describe.
When using the
EmailClient
to send emails, it's hard to make sure that it works as intended using e2e. A proper e2e test would actually send out an email and check that it is received at a test email. But it may take quite some time until the test email is really delivered, leading to long test times.Describe the solution you'd like
Provide a way to simulate sending an email, but instead of really sending it return the "would-be-received-email". Alternatively, provide an test email address where one could send emails to, which are delivered immediately and which can be checked easily with an api or similar.
Describe alternatives you've considered
Only manually testing the setup with real email addresses from time to time.
The text was updated successfully, but these errors were encountered: