Documentation ¶
Index ¶
Constants ¶
View Source
const ( MailpitSMTPPort = "1025" MailpitUIPort = "8025" MailpitImage = "axllent/mailpit:latest" ContainerName = "mail_test_mailpit" )
Variables ¶
This section is empty.
Functions ¶
func CheckDockerAvailable ¶
CheckDockerAvailable verifies if Docker is available
func ClearMailpitMessages ¶
ClearMailpitMessages clears all messages from Mailpit
func SetupMailpit ¶
SetupMailpit starts a Mailpit container for testing
Types ¶
type EmailAddress ¶
type MailpitMessage ¶
type MailpitMessage struct { ID string `json:"ID"` MessageID string `json:"MessageID"` Read bool `json:"Read"` From EmailAddress `json:"From"` To []EmailAddress `json:"To"` Subject string `json:"Subject"` Attachments int `json:"Attachments"` Snippet string `json:"Snippet"` }
func GetMailpitMessages ¶
func GetMailpitMessages(t *testing.T) []MailpitMessage
GetMailpitMessages retrieves messages from Mailpit
Click to show internal directories.
Click to hide internal directories.