Skip to content

Commit

Permalink
feat: remove email provider test
Browse files Browse the repository at this point in the history
  • Loading branch information
love98ooo committed Sep 26, 2024
1 parent 17d18fb commit 335ed34
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions casdoorsdk/email_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,3 @@ func TestEmail(t *testing.T) {
}
}
}

func TestEmailByProvider(t *testing.T) {
InitConfig(TestCasdoorEndpoint, TestClientId, TestClientSecret, TestJwtPublicKey, TestCasdoorOrganization, TestCasdoorApplication)

email := &emailForm{
Title: "casbin",
Content: "casdoor-go-sdk website test",
Sender: "admin",
Receivers: []string{"TestSmtpServer"},
}
err := SendEmailByProvider(email.Title, email.Content, email.Sender, "provider_casbin_email", email.Receivers...)
if err != nil {
if !strings.Contains(err.Error(), "535 Error") {
t.Fatalf("Failed to send Email: %v", err)
}
}
}

0 comments on commit 335ed34

Please sign in to comment.