-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(be): Reverted commit 0bf884c and fixed subject when the email fai… (
#908)
- Loading branch information
1 parent
eb82c4c
commit 50ffa1e
Showing
3 changed files
with
12 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ void shouldNotSendMailWhenTokenInvalid() { | |
mockOAuthSuccess(); | ||
|
||
wireMockExtension | ||
.stubFor(post("/chess/uri/mail").willReturn(unauthorized())); | ||
.stubFor(post("/chess/uri").willReturn(unauthorized())); | ||
|
||
service | ||
.sendEmail(new ChesRequestDto(List.of("[email protected]"), "simple body"), "Test") | ||
|
@@ -79,7 +79,7 @@ void shouldNotSendMailWhenNoRoleInvalid() { | |
mockOAuthSuccess(); | ||
|
||
wireMockExtension | ||
.stubFor(post("/chess/uri/mail").willReturn(forbidden())); | ||
.stubFor(post("/chess/uri").willReturn(forbidden())); | ||
|
||
service | ||
.sendEmail(new ChesRequestDto(List.of("[email protected]"), "simple body"), "Test") | ||
|
@@ -99,7 +99,7 @@ void shouldSendMailWhenAuth(ChesRequestDto body) { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri") | ||
.willReturn( | ||
ok(TestConstants.CHES_SUCCESS_MESSAGE) | ||
.withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE) | ||
|
@@ -121,7 +121,7 @@ void shouldFailWith422() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri") | ||
.willReturn( | ||
status(422) | ||
.withBody(TestConstants.CHES_422_MESSAGE) | ||
|
@@ -144,7 +144,7 @@ void shouldSendMailWithNoBody() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri") | ||
.willReturn( | ||
status(400) | ||
.withBody(TestConstants.CHES_400_MESSAGE) | ||
|
@@ -167,7 +167,7 @@ void shouldFailWith500() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri") | ||
.willReturn( | ||
status(500) | ||
.withBody(TestConstants.CHES_500_MESSAGE) | ||
|
@@ -191,7 +191,7 @@ void shouldSendMailMultipleDestination() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri") | ||
.willReturn( | ||
ok(TestConstants.CHES_SUCCESS_MESSAGE) | ||
.withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE) | ||
|