From a7d0f2cbcdeebc5ffd75514dccbf4687efee8e84 Mon Sep 17 00:00:00 2001 From: Neha2365 <110969715+Neha2365@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:11:55 +0530 Subject: [PATCH] [MOSIP-31982] Added the kafka config class in otp application (#1241) * MOSIP-32073 design document added (#1223) Signed-off-by: Neha Farheen Co-authored-by: Neha Farheen Signed-off-by: Neha Farheen * POM changes (#1225) Signed-off-by: Neha Farheen Co-authored-by: Neha Farheen Signed-off-by: Neha Farheen * updated the image path Signed-off-by: Neha Farheen * MOSIP-31982 changes done for image Signed-off-by: Neha Farheen * MOSIP-31982 changes done for image Signed-off-by: Neha Farheen * MOSIP-31982 added kafka config in otp application Signed-off-by: Neha Farheen * MOSIP-31982 added kafka config in otp application Signed-off-by: Neha Farheen --------- Signed-off-by: Neha Farheen Co-authored-by: Neha Farheen --- .../io/mosip/authentication/otp/service/OtpApplication.java | 3 ++- .../service/kyc/util/ExchangeDataAttributesUtilTest.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java b/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java index aabd10b444d..09e87a79cb0 100644 --- a/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java +++ b/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java @@ -12,6 +12,7 @@ import io.mosip.authentication.common.service.cache.MasterDataCache; import io.mosip.authentication.common.service.cache.MasterDataCacheInitializer; import io.mosip.authentication.common.service.config.IDAMappingConfig; +import io.mosip.authentication.common.service.config.KafkaProducerConfig; import io.mosip.authentication.common.service.config.LangComparatorConfig; import io.mosip.authentication.common.service.config.OpenApiProperties; import io.mosip.authentication.common.service.config.SwaggerConfig; @@ -112,7 +113,7 @@ PartnerCACertEventServiceImpl.class, PartnerCACertEventInitializer.class, IdAuthWebSubInitializer.class, AuthAnonymousEventPublisher.class, EnvUtil.class, KeyBindedTokenMatcherUtil.class, HSMHealthCheck.class, PrivateKeyDecryptorHelper.class, - PasswordAuthServiceImpl.class, PasswordComparator.class, AuthenticationErrorEventingPublisher.class }) + PasswordAuthServiceImpl.class, PasswordComparator.class, AuthenticationErrorEventingPublisher.class, KafkaProducerConfig.class }) @ComponentScan(basePackages = { "io.mosip.authentication.otp.service.*", "io.mosip.kernel.core.logger.config", "${mosip.auth.adapter.impl.basepackage}" }, excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = { "io.mosip.idrepository.core.config.IdRepoDataSourceConfig.*" })) diff --git a/authentication/authentication-service/src/test/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtilTest.java b/authentication/authentication-service/src/test/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtilTest.java index df2d5b8796b..3527f410bac 100644 --- a/authentication/authentication-service/src/test/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtilTest.java +++ b/authentication/authentication-service/src/test/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtilTest.java @@ -22,6 +22,7 @@ import org.springframework.context.annotation.Import; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestContext; +import org.springframework.test.context.TestPropertySource; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.util.ReflectionTestUtils; import org.springframework.web.context.WebApplicationContext; @@ -37,6 +38,7 @@ @ContextConfiguration(classes = {TestContext.class, WebApplicationContext.class}) @RunWith(SpringRunner.class) @Import(EnvUtil.class) +@TestPropertySource(locations="classpath:application.properties") public class ExchangeDataAttributesUtilTest { @Autowired