Skip to content

Commit

Permalink
[MOSIP-29805] Updated Anonymous profile naming convention
Browse files Browse the repository at this point in the history
Signed-off-by: Aiham <[email protected]>
  • Loading branch information
aihamh committed Dec 19, 2023
1 parent d7d5d4f commit 387b57b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,4 @@ mosip.security.authentication.provider.beans.list.pre-registration-booking-servi
mosip.kernel.data-key-splitter: #KEY_SPLITTER#
pre.reg.login.otp.validation-attempt-threshold: 10

mosip.preregistration.user.admin:admin
mosip.preregistration.anonymous-profile-username:admin
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class AnonymousProfileService implements AnonymousProfileServiceIntf {
@Value("${mosip.utc-datetime-pattern}")
private String utcDateTimePattern;

@Value("${mosip.preregistration.user.admin}")
private String userName;
@Value("${mosip.preregistration.anonymous-profile-username}")
private String anonymousProfileUsername;

/**
* Autowired reference for {@link #AnonymousProfileRepostiory}
Expand Down Expand Up @@ -70,9 +70,9 @@ public AnonymousProfileResponseDTO saveAnonymousProfile(AnonymousProfileRequestD
AnonymousProfileEntity requestEntity = new AnonymousProfileEntity();
requestEntity.setId(UUIDGeneratorUtil.generateId());
requestEntity.setProfile(requestDto.getProfileDetails());
requestEntity.setCreatedBy(userName);
requestEntity.setCreatedBy(anonymousProfileUsername);
requestEntity.setCreateDateTime(currentDateTime);
requestEntity.setUpdatedBy(userName);
requestEntity.setUpdatedBy(anonymousProfileUsername);
requestEntity.setUpdateDateTime(currentDateTime);
requestEntity.setIsDeleted(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class AnonymousProfileServiceTest {
@Value("${mosip.utc-datetime-pattern}")
private String utcDateTimePattern;

@Value("${mosip.preregistration.user.admin}")
private String userName;
@Value("${mosip.preregistration.anonymous-profile-username}")
private String anonymousProfileUsername;

AnonymousProfileResponseDTO responseDto = new AnonymousProfileResponseDTO();

Expand Down Expand Up @@ -73,9 +73,9 @@ public void saveAnonymousProfileTest() {

requestEntity.setId(id);
requestEntity.setProfile(requestDto.getProfileDetails());
requestEntity.setCreatedBy(userName);
requestEntity.setCreatedBy(anonymousProfileUsername);
requestEntity.setCreateDateTime(currentDateTime);
requestEntity.setUpdatedBy(userName);
requestEntity.setUpdatedBy(anonymousProfileUsername);
requestEntity.setUpdateDateTime(currentDateTime);
requestEntity.setIsDeleted(false);
requestDto.setProfileDetails(profile);
Expand All @@ -98,9 +98,9 @@ public void saveAnonymousProfileExceptionTest() throws Exception {

requestEntity.setId(id);
requestEntity.setProfile(requestDto.getProfileDetails());
requestEntity.setCreatedBy(userName);
requestEntity.setCreatedBy(anonymousProfileUsername);
requestEntity.setCreateDateTime(currentDateTime);
requestEntity.setUpdatedBy(userName);
requestEntity.setUpdatedBy(anonymousProfileUsername);
requestEntity.setUpdateDateTime(currentDateTime);
requestEntity.setIsDeleted(false);
requestDto.setProfileDetails(profile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ spring.cloud.config.label=develop
spring.cloud.config.name=pre-registration
spring.profiles.active=mz

mosip.preregistration.user.admin:admin
mosip.preregistration.anonymous-profile-username:admin

0 comments on commit 387b57b

Please sign in to comment.