Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Smpt sender email fix #2

wants to merge 7 commits into from

Conversation

Tushar-Naik
Copy link
Contributor

This PR addresses the following

  • Adds support to override sender email
  • Removes authz check on housekeeping api

@@ -34,6 +34,10 @@ public class MailNotificationConfig extends NotificationConfig {

List<@Email String> defaultEmails;

String fromName;

String fromAddress;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be @NotEmpty

@@ -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);
Copy link
Contributor

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.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants