core icon indicating copy to clipboard operation
core copied to clipboard

Support other test mail services in testsuite

Open xoxys opened this issue 1 year ago • 1 comments

Today, the test suite is hard-coded to mailhog as test mail service due to the API usage. As mailhog is poorly maintained and for a while was completely unmaintained, some CI pipelines/demo deployments have switched to other solutions like inbucket.

Would it be possible to use pop3 to communicate with the mail service instead of an API? This way it would be more generic and easier to replace the used test mail service. As we currently only support unauthenticated requests to the mailhog API, I would keep it simple for now and only support unauthenticated pop3 as well.

xoxys avatar Sep 13 '22 07:09 xoxys

QA people - please first investigate a bit to see if this will be "moderately easy", and then we can discuss what is the way forward for implementing.

phil-davis avatar Sep 13 '22 08:09 phil-davis

The working of inbucket is quite similar to the mailhog. We can start the service using docker and then fetch the sent mails using the REST API.

IMO, the integration will be easy. The point that the mailhog is no more maintained, this can be a good option.

cc @phil-davis

kiranparajuli589 avatar Sep 29 '22 10:09 kiranparajuli589