Skip to content

Commit

Permalink
[MOSIP-29805] Updated 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 06020a9 commit 23eebd4
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 @@ -426,4 +426,4 @@ auth.server.admin.allowed.audience=mosip-regproc-client,mosip-prereg-client,mosi
mosip.security.authentication.provider.beans.list.pre-registration-application-service=customJWTAuthProvider
mosip.security.authentication.provider.beans.list.pre-registration-booking-service=customJWTAuthProvider

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 23eebd4

Please sign in to comment.