gitlab.com/ignitionrobotics/web/ign-go@v1.0.0-rc4/aws_test.go (about) 1 package ign 2 3 import ( 4 "github.com/stretchr/testify/assert" 5 "testing" 6 ) 7 8 // Tests for aws file 9 10 // TestSendEmal tests the SendEmail func 11 func TestSendEmail(t *testing.T) { 12 13 sender := "sender@email.org" 14 recipient := "recipient@email.org" 15 subject := "ign-go AWS SES test" 16 body := "Hello from ign-go!" 17 18 err := SendEmail(sender, recipient, subject, body) 19 assert.Error(t, err, "Should not be able to send email through AWS SES") 20 }