-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added integration with postmark (#484)
- Loading branch information
Showing
24 changed files
with
215 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameSigninPasswordless, | ||
|
@@ -255,6 +256,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameSigninPasswordless, | ||
|
@@ -381,6 +383,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"fr", | ||
notifications.TemplateNameSigninPasswordless, | ||
|
@@ -516,6 +519,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameSigninPasswordless, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -965,6 +965,7 @@ func TestPostSignupEmailPassword(t *testing.T) { //nolint:maintidx | |
emailer: func(ctrl *gomock.Controller) *mock.MockEmailer { | ||
mock := mock.NewMockEmailer(ctrl) | ||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailVerify, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -386,6 +386,7 @@ func TestPostSignupWebauthnVerify(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailVerify, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,6 +225,7 @@ func TestPostUserDeanonymize(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailVerify, | ||
|
@@ -309,6 +310,7 @@ func TestPostUserDeanonymize(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameSigninPasswordless, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,7 @@ func TestPostUserEmailChange(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailConfirmChange, | ||
|
@@ -252,6 +253,7 @@ func TestPostUserEmailChange(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailConfirmChange, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ func TestPostUserEmailSendVerificationEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailVerify, | ||
|
@@ -136,6 +137,7 @@ func TestPostUserEmailSendVerificationEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailVerify, | ||
|
@@ -210,6 +212,7 @@ func TestPostUserEmailSendVerificationEmail(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNameEmailVerify, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ func TestPostUserPasswordReset(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNamePasswordReset, | ||
|
@@ -134,6 +135,7 @@ func TestPostUserPasswordReset(t *testing.T) { //nolint:maintidx | |
mock := mock.NewMockEmailer(ctrl) | ||
|
||
mock.EXPECT().SendEmail( | ||
gomock.Any(), | ||
"[email protected]", | ||
"en", | ||
notifications.TemplateNamePasswordReset, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.