From 265209298351ab5ebb217e6829ca0ef074008151 Mon Sep 17 00:00:00 2001 From: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> Date: Thu, 19 Oct 2023 20:04:35 +0530 Subject: [PATCH] MOSIP-29286 Signed-off-by: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> --- .../apirig/admin/fw/util/AdminTestUtil.java | 26 ++++ .../kernel/util/KernelAuthentication.java | 28 ++++ .../testrig/apirig/service/BaseTestCase.java | 6 +- .../apirig/testscripts/AddIdentity.java | 2 +- .../testrig/apirig/testscripts/BioAuth.java | 9 +- .../resources/config/application.properties | 3 +- .../idRepository/AddIdentity/AddIdentity.yml | 132 ++++++++++++++++++ .../UpdatePreRegStatus/updatePreRegStatus.yml | 18 +++ .../preReg/createPrereg/createPrereg.yml | 48 ++++++- .../resident/AddIdentity/AddIdentity.yml | 28 ++++ .../DownloadUinCard/DownloadUinCard.yml | 35 +++++ .../GenerateVID/createGenerateVID.yml | 71 ++++++++++ 12 files changed, 400 insertions(+), 6 deletions(-) diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/admin/fw/util/AdminTestUtil.java b/automationtests/src/main/java/io/mosip/testrig/apirig/admin/fw/util/AdminTestUtil.java index 81ee4190da6..087a41a0d37 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/admin/fw/util/AdminTestUtil.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/admin/fw/util/AdminTestUtil.java @@ -76,6 +76,7 @@ import org.yaml.snakeyaml.Yaml; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.jknack.handlebars.Context; import com.github.jknack.handlebars.Handlebars; @@ -5744,5 +5745,30 @@ public static boolean isElementPresent(JSONArray inputArray, String element) { } return false; } + + public static String ekycDataDecryption(String url, JSONObject kycDataForDecryption, String partnerName, + Boolean keyFileNameByPartnerName) { + url = url + properties.getProperty("decryptKycUrl"); + + ObjectMapper mapper = new ObjectMapper(); + Map map = null; + try { + map = mapper.readValue(kycDataForDecryption.toString(), Map.class); + } catch (JsonProcessingException e) { + logger.error(e.getMessage()); + } + + HashMap queryParamMap = new HashMap<>(); + queryParamMap.put("partnerName", partnerName); + queryParamMap.put("moduleName", BaseTestCase.certsForModule); + + queryParamMap.put("keyFileNameByPartnerName", keyFileNameByPartnerName); + + Response response = RestClient.postRequestWithQueryParamsAndBody(url, map, queryParamMap, + MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN); + GlobalMethods.reportResponse(response.getHeaders().asList().toString(), url, response); + + return response.toString(); + } } diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/kernel/util/KernelAuthentication.java b/automationtests/src/main/java/io/mosip/testrig/apirig/kernel/util/KernelAuthentication.java index d4313f01f57..e20ca8b87eb 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/kernel/util/KernelAuthentication.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/kernel/util/KernelAuthentication.java @@ -140,6 +140,13 @@ public String getTokenByRole(String role, String tokenType) { if (!kernelCmnLib.isValidToken(batchJobToken)) batchJobToken = kernelAuthLib.getPreRegToken(); return batchJobToken; + + case "invalidBatch": + if (!kernelCmnLib.isValidToken(batchJobToken)) + invalidBatchJobToken = kernelAuthLib.getPreRegInvalidToken(); + return invalidBatchJobToken; + + case "invalid": return "anyRandomString"; case "regAdmin": @@ -463,6 +470,27 @@ public String getPreRegToken() { cookie = otpValidate.getCookie(GlobalConstants.AUTHORIZATION); return cookie; } + + @SuppressWarnings("unchecked") + public String getPreRegInvalidToken() { + JSONObject actualRequest_generation = getRequestJson("config/prereg_SendOtp.json"); + actualRequest_generation.put(GlobalConstants.REQUESTTIME, clib.getCurrentUTCTime()); + ((JSONObject) actualRequest_generation.get(GlobalConstants.REQUEST)).put("langCode", + BaseTestCase.getLanguageList().get(0)); + ((JSONObject) actualRequest_generation.get(GlobalConstants.REQUEST)).get("userId").toString(); + JSONObject actualRequest_validation = getRequestJson("config/prereg_ValidateOtp.json"); + appl.postWithJson(preregSendOtp, actualRequest_generation); + String otp = null; + if (proxy) + otp = "111222"; + else { + } + ((JSONObject) actualRequest_validation.get(GlobalConstants.REQUEST)).put("otp", otp); + actualRequest_validation.put(GlobalConstants.REQUESTTIME, clib.getCurrentUTCTime()); + Response otpValidate = appl.postWithJson(preregValidateOtp, actualRequest_validation); + cookie = otpValidate.getCookie(GlobalConstants.AUTHORIZATION); + return cookie; + } @SuppressWarnings("unchecked") public String getAuthForRegistrationProcessor() { diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/service/BaseTestCase.java b/automationtests/src/main/java/io/mosip/testrig/apirig/service/BaseTestCase.java index a57ef57ebe0..f783d87e143 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/service/BaseTestCase.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/service/BaseTestCase.java @@ -102,6 +102,8 @@ public class BaseTestCase { public static HashMap regCenterId = new HashMap<>(); public static String expiredPreId = null; public String batchJobToken = null; + public String invalidBatchJobToken = null; + public static List expiredPreRegIds = null; public static List consumedPreRegIds = null; public static Map residentQueries; @@ -390,7 +392,7 @@ public static void mapUserToZone() { String url = ApplnURI + propsKernel.getProperty("zoneMappingUrl"); org.json.simple.JSONObject actualrequest = getRequestJson(zoneMappingRequest); JSONObject request = new JSONObject(); - request.put("zoneCode", props.get("zoneCode_to_beMapped")); + request.put("zoneCode", ZonelocationCode); request.put("userId", BaseTestCase.currentModule + "-" + ConfigManager.getUserAdminName()); request.put("langCode", BaseTestCase.getLanguageList().get(0)); request.put(GlobalConstants.ISACTIVE, GlobalConstants.TRUE_STRING); @@ -410,7 +412,7 @@ public static void mapUserToZone(String user, String zone) { String url = ApplnURI + propsKernel.getProperty("zoneMappingUrl"); org.json.simple.JSONObject actualrequest = getRequestJson(zoneMappingRequest); JSONObject request = new JSONObject(); - request.put("zoneCode", zone); + request.put("zoneCode", ZonelocationCode); request.put("userId", user); request.put("langCode", BaseTestCase.getLanguageList().get(0)); request.put(GlobalConstants.ISACTIVE, GlobalConstants.TRUE_STRING); diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java index f2d8fdcb3ec..2752367d666 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java @@ -175,7 +175,7 @@ public void setResultTestName(ITestResult result) { public void waittime() { try { - if (BaseTestCase.currentModule.equals("idrepo")) { + if (BaseTestCase.currentModule.equals("auth")) { logger.info("waiting for " + properties.getProperty("Delaytime") + " mili secs after UIN Generation In IDREPO"); // Thread.sleep(Long.parseLong(properties.getProperty("Delaytime"))); } diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/BioAuth.java b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/BioAuth.java index 3a078a59cdb..237aa1d40f5 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/BioAuth.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/BioAuth.java @@ -30,6 +30,7 @@ import io.mosip.testrig.apirig.authentication.fw.util.AuthenticationTestException; import io.mosip.testrig.apirig.authentication.fw.util.OutputValidationUtil; import io.mosip.testrig.apirig.authentication.fw.util.ReportUtil; +import io.mosip.testrig.apirig.global.utils.GlobalMethods; import io.mosip.testrig.apirig.ida.certificate.PartnerRegistration; import io.mosip.testrig.apirig.kernel.util.ConfigManager; import io.mosip.testrig.apirig.service.BaseTestCase; @@ -169,7 +170,13 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad JSONObject resJsonObject = new JSONObject(response.asString()); String res = ""; try { - res = resJsonObject.get("response").toString(); + //res = resJsonObject.get("response").toString(); + resJsonObject = new JSONObject(response.getBody().asString()).getJSONObject("authResponse") + .getJSONObject("body").getJSONObject("response"); + + res= AdminTestUtil.ekycDataDecryption( url, resJsonObject, PartnerRegistration.ekycPartnerId, + true); + } catch (JSONException e) { logger.error(e.getMessage()); } diff --git a/automationtests/src/main/resources/config/application.properties b/automationtests/src/main/resources/config/application.properties index 2ddf6d7adfd..e6b89bb19ed 100644 --- a/automationtests/src/main/resources/config/application.properties +++ b/automationtests/src/main/resources/config/application.properties @@ -79,4 +79,5 @@ mobileIdAutoGeneratedIdPropFileName=/mobileId/autoGeneratedId.properties fetchLocationData=/v1/masterdata/locations/all fetchLocationLevel=/v1/masterdata/locations/level/ fetchTitle=/v1/masterdata/title -fetchZone=/v1/masterdata/zones/zonename \ No newline at end of file +fetchZone=/v1/masterdata/zones/zonename +decryptKycUrl=/v1/identity/decryptEkycData \ No newline at end of file diff --git a/automationtests/src/main/resources/idRepository/AddIdentity/AddIdentity.yml b/automationtests/src/main/resources/idRepository/AddIdentity/AddIdentity.yml index 1de251e11b4..c81b44e6a8c 100644 --- a/automationtests/src/main/resources/idRepository/AddIdentity/AddIdentity.yml +++ b/automationtests/src/main/resources/idRepository/AddIdentity/AddIdentity.yml @@ -675,6 +675,138 @@ AddIdentity: "introducerRID": "212124324784879", "introducerUIN": "212124324784879", + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" +}' + IdRepository_AddIdentity_with_less_then_10_digit_phone: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: idRepository/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: idRepository/AddIdentity/addIdentityResult + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + + "UIN": "$UIN$", + + "dateOfBirth": "1992/04/15", + + "postalCode": "14022", + "email": "mosipuser123@mailinator.com", + "phone": "4732626", + "mobileno": "4732626", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" +}' + IdRepository_AddIdentity_with_more_then_10_digit_phone: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: idRepository/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: idRepository/AddIdentity/addIdentityResult + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + + "UIN": "$UIN$", + + "dateOfBirth": "1992/04/15", + + "postalCode": "14022", + "email": "mosipuser123@mailinator.com", + "phone": "47326261234", + "mobileno": "47326261234", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" +}' + IdRepository_AddIdentity_withcharacter_as_Phone_number: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: idRepository/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: idRepository/AddIdentity/addIdentityResult + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + + "UIN": "$UIN$", + + "dateOfBirth": "1992/04/15", + + "postalCode": "14022", + "email": "mosipuser123@mailinator.com", + "phone": "abcdefghijak", + "mobileno": "abcdefghijak", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" +}' + IdRepository_AddIdentity_with_empty_Phone_number: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: idRepository/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: idRepository/AddIdentity/addIdentityResult + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + + "UIN": "$UIN$", + + "dateOfBirth": "1992/04/15", + + "postalCode": "14022", + "email": "mosipuser123@mailinator.com", + "phone": "", + "mobileno": "", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + "category": "individualBiometrics", "requesttime": "$TIMESTAMP$" }' diff --git a/automationtests/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml b/automationtests/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml index bc8c8e0fbe6..f51bb5f95cc 100644 --- a/automationtests/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml +++ b/automationtests/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml @@ -89,4 +89,22 @@ UpdatePreRegStatus: "statusCode": "Pending_Appointment" }' output: '{ +}' + Prereg_UpdatePreRegStatus_without_update_prereg_status_sid: + endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + role: batch + checkErrorsOnlyInResponse: true + restMethod: get + inputTemplate: preReg/UpdatePreRegStatus/updatePreRegStatus + outputTemplate: preReg/error + input: '{ + "preRegistrationId": "$ID:CreatePrereg_book_appoinment_without_update_prereg_status_sid_preRegistrationId$", + "statusCode": "Pending_Appointment" +}' + output: '{ + "errors": [ + { + "errorCode": "PRG_PAM_APP_023" + } + ] }' \ No newline at end of file diff --git a/automationtests/src/main/resources/preReg/createPrereg/createPrereg.yml b/automationtests/src/main/resources/preReg/createPrereg/createPrereg.yml index 80a43d15497..ae225c42ce7 100644 --- a/automationtests/src/main/resources/preReg/createPrereg/createPrereg.yml +++ b/automationtests/src/main/resources/preReg/createPrereg/createPrereg.yml @@ -18,6 +18,26 @@ CreatePrereg: "id": "mosip.pre-registration.demographic.create" }' output: '{ +}' + Prereg_CreatePrereg_book_appoinment_without_update_prereg_status_sid: + endPoint: /preregistration/v1/applications/prereg + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/createPrereg/createPrereg + outputTemplate: preReg/createPrereg/createPreregResult + input: '{ + "postalCode": "14022", + "phone": "8249742850", + "email": "goku@technoforte.co.in", + "IDSchemaVersion": $SCHEMAVERSION$, + "dateOfBirth": "1996/01/01", + "version": "1.0", + "langCode": "$1STLANG$", + "requesttime": "$TIMESTAMP$", + "id": "mosip.pre-registration.demographic.create" +}' + output: '{ }' Prereg_CreatePrereg_All_Valid_Smoke_UpdateDocRefID_sid: endPoint: /preregistration/v1/applications/prereg @@ -474,4 +494,30 @@ CreatePrereg: "errorCode": "KER-IOV-004" } ] -}' \ No newline at end of file +}' + Prereg_CreatePrereg_Invalid_OTP_Neg: + endPoint: /preregistration/v1/applications/prereg + role: invalidBatch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/createPrereg/createPrereg + outputTemplate: preReg/error + input: '{ + "postalCode": "14022", + "phone": "8249742850", + "mobileno": "8249742850", + "email": "goku@technoforte.co.in", + "IDSchemaVersion": $SCHEMAVERSION$, + "dateOfBirth": "1996/01/01", + "version": "1.0", + "langCode": "$1STLANG$", + "requesttime": "$TIMESTAMP$", + "id": "mosip.pre-registration.demographic.create" +}' + output: '{ + "errors": [ + { + "errorCode": "KER-IOV-004" + } + ] +}' diff --git a/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml b/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml index 0d4d01b954c..cb138b58614 100644 --- a/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml +++ b/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml @@ -26,6 +26,34 @@ AddIdentity: }' output: '{ "status":"ACTIVATED" +}' + Resident_AddIdentity_withValidParameters_maximum_email_character_smoke_Pos11111111111111: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: resident/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: resident/AddIdentity/addIdentityResult + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_maximum_email_character_smoke_Pos11111111111111@mosip.net", + "phone": "9876543210", + "mobileno": "9876543210", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" }' Resident_AddIdentity_ValidParam_smoke_Pos: endPoint: /idrepository/v1/identity/ diff --git a/automationtests/src/main/resources/resident/DownloadUinCard/DownloadUinCard.yml b/automationtests/src/main/resources/resident/DownloadUinCard/DownloadUinCard.yml index 520cfbf40c4..c86912356aa 100644 --- a/automationtests/src/main/resources/resident/DownloadUinCard/DownloadUinCard.yml +++ b/automationtests/src/main/resources/resident/DownloadUinCard/DownloadUinCard.yml @@ -31,6 +31,41 @@ DownloadUinCard: } }' + Resident_DownloadUinCard_With_Invalid_OTP_Neg: + endPoint: /resident/v1/download-card + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: resident/DownloadUinCard/DownloadUinCard + outputTemplate: resident/DownloadUinCard/DownloadUinCardResult + input: '{ + "transactionId": "$TRANSACTIONID$", + "otp": "198365@@eeG", + "individualId": "$ID:AddIdentity_Positive_PRE_smoke_UIN$", + "requesttime": "$TIMESTAMP$", + "sendOtp":{ + "transactionId": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_Positive_PRE_smoke_UIN$", + "otpChannel": [{channel: "EMAIL"},{channel: "PHONE"}], + "aid": "$ID:UpdateUIN_Valid_All_Smoke_Pos_sid_registrationId$", + "sendOtpReqTemplate": "resident/ReqAidOtp/ReqAidOtp", + "sendOtpEndPoint": "/resident/v1/individualId/otp" + } +}' + + output: '{ + "errors": [{ + "errorCode": "RES-SER-457", + "message": "$IGNORE$" + }], + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/ReqAidOtp/ReqAidOtpResult", + "maskedEmail": "$IGNORE$" + } +}' + Resident_DownloadUinCard_Invalid_TransactionID_Neg: endPoint: /resident/v1/download-card role: resident diff --git a/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml b/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml index f3382dd222c..a2325fd9ca9 100644 --- a/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml +++ b/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml @@ -31,6 +31,77 @@ GenerateVID: "maskedEmail": "$IGNORE$" } }' + Resident_Generate_Perpetual_VID_Valid_Smoke_send_otp_with_max_email_character_sid: + endPoint: /resident/v1/vid + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: resident/GenerateVID/createGenerateVID + outputTemplate: resident/GenerateVID/createGenerateVIDResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "individualId": "$ID:AddIdentity_withValidParameters_maximum_email_character_smoke_Pos11111111111111_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_maximum_email_character_smoke_Pos11111111111111_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_maximum_email_character_smoke_Pos11111111111111_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + + Resident_Generate_Perpetual_VID_With_InValid_UIN: + endPoint: /resident/v1/vid + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: resident/GenerateVID/createGenerateVID + outputTemplate: resident/GenerateVID/createGenerateVIDResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "individualId": "1272Y@GDGDG", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_Positive_PRE_smoke_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_Positive_PRE_smoke_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "errors": [ + { + "errorCode": "RES-SER-422", + "message": "$IGNORE$" + } + ], + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' Resident_Generate_Temporary_VID_Valid_Smoke_sid: endPoint: /resident/v1/vid