Skip to content

Commit

Permalink
fix: CARITAS-243
Browse files Browse the repository at this point in the history
* remove userServiceApiSendNewFeedbackMessageNotificationUrl
  • Loading branch information
Leandro13Silva13 committed Aug 9, 2024
1 parent fe0fb53 commit a63a538
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ public class EmailNotificationFacade {
@Value("${user.service.api.new.message.notification}")
private String userServiceApiSendNewMessageNotificationUrl;

@Value("${user.service.api.new.feedback.message.notification}")
private String userServiceApiSendNewFeedbackMessageNotificationUrl;

@Autowired
public EmailNotificationFacade(
EmailNotificationHelper emailNotificationHelper, AuthenticatedUser authenticatedUser) {
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ springfox.documentation.swagger.v2.path=${springfox.docuPath}/v2/api-docs
# UserService API
user.service.api.url=<containername>:<port>/users
user.service.api.new.message.notification=${user.service.api.url}/mails/messages/new
user.service.api.new.feedback.message.notification=${user.service.api.url}/mails/messages/feedback/new
user.service.api.liveproxy.url=<containername>:<port>
# CSRF token
csrf.header.property=
Expand Down Expand Up @@ -107,4 +106,4 @@ management.endpoint.health.show-details=never
management.endpoints.web.exposure.include=health
management.health.probes.enabled=true
management.metrics.mongo.command.enabled=false
management.metrics.mongo.connectionpool.enabled=false
management.metrics.mongo.connectionpool.enabled=false
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ public class EmailNotificationFacadeTest {
"userServiceApiSendNewMessageNotificationUrl";
private static final String NOTIFICATION_API_URL =
"http://caritas.local/service/users/mails/messages/new";
private static final String FIELD_NAME_NEW_FEEDBACK_MESSAGE_NOTIFICATION =
"userServiceApiSendNewFeedbackMessageNotificationUrl";
private static final String FEEDBACK_NOTIFICATION_API_URL =
"http://caritas.local/service/users/mails/messages/feedback/new";
private static final String RC_GROUP_ID = "fR2Rz7dmWmHdXE8uz";

@Mock private EmailNotificationHelper emailNotificationHelper;
Expand All @@ -37,7 +33,6 @@ public class EmailNotificationFacadeTest {
@Before
public void setup() throws NoSuchFieldException, SecurityException {
ReflectionTestUtils.setField(emailNotificationFacade, FIELD_NAME_NEW_MESSAGE_NOTIFICATION, NOTIFICATION_API_URL);
ReflectionTestUtils.setField(emailNotificationFacade, FIELD_NAME_NEW_FEEDBACK_MESSAGE_NOTIFICATION, FEEDBACK_NOTIFICATION_API_URL);
}

@Test
Expand Down

0 comments on commit a63a538

Please sign in to comment.