Merge branch 'RED-9512-bp' into 'release/1.134.x'
RED-9512: added null check for SMTP password when updating configuration See merge request fforesight/tenant-user-management-service!119
This commit is contained in:
commit
abc1702097
@ -72,4 +72,22 @@ public class SMTPConfigurationTest extends AbstractTenantUserManagementIntegrati
|
||||
TenantContext.clear();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testSMTPwithoutPassword() {
|
||||
TenantContext.setTenantId(AbstractTenantUserManagementIntegrationTest.TEST_TENANT_ID);
|
||||
|
||||
SMTPConfiguration smtpConfiguration = new SMTPConfiguration();
|
||||
smtpConfiguration.setFrom("from@knecon.com");
|
||||
smtpConfiguration.setHost("test.knecon.com");
|
||||
|
||||
smtpConfigurationClient.updateSMTPConfiguration(smtpConfiguration);
|
||||
|
||||
var current = smtpConfigurationClient.getCurrentSMTPConfiguration();
|
||||
|
||||
assertThat(current.getPassword()).matches("\\**");
|
||||
|
||||
TenantContext.clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user