-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smpt sender email fix #2
base: master
Are you sure you want to change the base?
Conversation
epoch-server/src/main/java/com/phonepe/epoch/server/notify/NotificationMailSender.java
Show resolved
Hide resolved
@@ -34,6 +34,10 @@ public class MailNotificationConfig extends NotificationConfig { | |||
|
|||
List<@Email String> defaultEmails; | |||
|
|||
String fromName; | |||
|
|||
String fromAddress; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be @NotEmpty
epoch-server/src/main/java/com/phonepe/epoch/server/resources/Housekeeping.java
Show resolved
Hide resolved
@@ -38,7 +38,7 @@ class NotificationMailSenderTest { | |||
void testSendMail() { | |||
val ts = mock(TopologyStore.class); | |||
val trs = mock(TopologyRunInfoStore.class); | |||
val mc = new MailNotificationConfig("localhost", 2525, false, "", "", List.of(), false); | |||
val mc = new MailNotificationConfig("localhost", 2525, false, "", "", List.of(), "sender", "[email protected]", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a constant for these two strings.
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
This PR addresses the following