Use MailHog docker container for email tests

Description

Most of the unit tests in opennms-javamail/opennms-javamail-api/src/test/java/org/opennms/javamail/JavaMailerTest.java have an @Ignore annotation.

When running unit tests under docker, you could use mailhog/mailhog to provide a local SMTP server they can send emails to so the code gets tested.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Ron Roskens May 19, 2019 at 10:36 PM

You could also use it for:

  • features/poller/monitors/core/src/test/java/org/opennms/netmgt/poller/monitors/MailTransportMonitorTest.java

  • opennms-ackd/src/test/java/org/opennms/netmgt/ackd/readers/JavaMailAckReaderIT.java

Details

Assignee

Reporter

Labels

Components

Priority

PagerDuty

Created May 19, 2019 at 10:05 PM
Updated September 21, 2021 at 9:27 PM
Loading...