From 25355207d611c4d3ca470af9298e3b7b1a62f1c7 Mon Sep 17 00:00:00 2001 From: jayesh12234 <111957576+jayesh12234@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:05:59 +0530 Subject: [PATCH] MOSIP-36485 (#1391) Signed-off-by: Jayesh Kharode Co-authored-by: Jayesh Kharode --- .../testrig/apirig/auth/testscripts/BioAuth.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/auth/testscripts/BioAuth.java b/api-test/src/main/java/io/mosip/testrig/apirig/auth/testscripts/BioAuth.java index 88bd416196..71262dd6eb 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/auth/testscripts/BioAuth.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/auth/testscripts/BioAuth.java @@ -23,6 +23,7 @@ import io.mosip.testrig.apirig.auth.utils.IdAuthenticationUtil; import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.testrunner.BaseTestCase; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; @@ -113,7 +114,16 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad identityRequestEncUrl = identityReqJson.getString("identityRequestEncUrl"); identityReqJson.remove("identityRequestEncUrl"); identityRequest = getJsonFromTemplate(identityReqJson.toString(), identityRequestTemplate); - + logger.info(identityRequest); + if (identityRequest.contains("baseurl")) { + String domainUrl = BaseTestCase.ApplnURI; + identityRequest = identityRequest.replace("baseurl", domainUrl); + } + if (identityRequest.contains("$DOMAINURI$")) { + String domainUrl = BaseTestCase.ApplnURI; + identityRequest = identityRequest.replace("$DOMAINURI$", domainUrl); + } + logger.info(identityRequest); String encryptedIdentityReq = null; try { encryptedIdentityReq = bioDataUtil.constractBioIdentityRequest(identityRequest,