From 8bccbf1fe7a90db4477cd9f6206311eb811743df Mon Sep 17 00:00:00 2001 From: Nandhukumar Date: Thu, 5 Dec 2024 14:58:20 +0530 Subject: [PATCH 1/2] MOSIP-36485 Signed-off-by: Nandhukumar --- .../apirig/esignet/testscripts/EsignetBioAuth.java | 8 ++++++-- .../esignet/BioAuthIdp/BioAuthIdentityEncrypt.hbs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/esignet/testscripts/EsignetBioAuth.java b/api-test/src/main/java/io/mosip/testrig/apirig/esignet/testscripts/EsignetBioAuth.java index ba7330f3d..376f8cda6 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/esignet/testscripts/EsignetBioAuth.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/esignet/testscripts/EsignetBioAuth.java @@ -133,20 +133,24 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad identityRequest = getJsonFromTemplate(identityReqJson.toString(), identityRequestTemplate); if (identityRequest.contains("$DOMAINURI$")) { - String domainUrl = ApplnURI.replace("api-internal", GlobalConstants.ESIGNET); + String domainUrl = EsignetConfigManager.getEsignetBaseUrl(); identityRequest = identityRequest.replace("$DOMAINURI$", domainUrl); } + + logger.info("identityRequest = " + identityRequest); String encryptedIdentityReq = null; try { encryptedIdentityReq = bioDataUtil.constractBioIdentityRequest(identityRequest, getResourcePath() + properties.getProperty("bioValueEncryptionTemplate"), testCaseName, isInternal); + + logger.info("encryptedIdentityReq = " + encryptedIdentityReq); if (encryptedIdentityReq == null) throw new AdminTestException("bioDataUtil.constractBioIdentityRequest is null"); JSONObject encryptedIdentityReqObject = new JSONObject(encryptedIdentityReq); - logger.info(encryptedIdentityReqObject); + logger.info("encryptedIdentityReqObject = " + encryptedIdentityReqObject); JSONArray arrayBiometrics = encryptedIdentityReqObject.getJSONArray(GlobalConstants.BIOMETRICS); String bioData = arrayBiometrics.toString(); diff --git a/api-test/src/main/resources/esignet/BioAuthIdp/BioAuthIdentityEncrypt.hbs b/api-test/src/main/resources/esignet/BioAuthIdp/BioAuthIdentityEncrypt.hbs index d5666414d..42d4f1048 100644 --- a/api-test/src/main/resources/esignet/BioAuthIdp/BioAuthIdentityEncrypt.hbs +++ b/api-test/src/main/resources/esignet/BioAuthIdp/BioAuthIdentityEncrypt.hbs @@ -20,7 +20,7 @@ "type": "{{type}}" }, "domainUri": "$DOMAINURI$", - "env": "Developer", + "env": "Staging", "purpose": "AUTH", "qualityScore": 70, "requestedScore": 70, From a2441fdea5d8a289533f8c8762d898929f9192f3 Mon Sep 17 00:00:00 2001 From: Nandhukumar Date: Fri, 6 Dec 2024 10:25:35 +0530 Subject: [PATCH 2/2] MOSIP-36485 Signed-off-by: Nandhukumar --- api-test/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-test/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml b/api-test/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml index 663d17562..744074bf7 100644 --- a/api-test/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml +++ b/api-test/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml @@ -435,7 +435,7 @@ BioNonAuth: output: '{ "errors": [ { - "errorCode": "invalid_challenge_length", + "errorCode": "auth_factor_mismatch", "errorMessage": "$IGNORE$" } ] @@ -965,7 +965,7 @@ BioNonAuth: output: '{ "errors": [ { - "errorCode": "invalid_challenge_length", + "errorCode": "auth_factor_mismatch", "errorMessage": "$IGNORE$" } ]