From f232ff2658dce29bbcf655c0beaa70bb7eb34d29 Mon Sep 17 00:00:00 2001 From: Anup Nehe Date: Wed, 20 Sep 2023 18:58:54 +0530 Subject: [PATCH 1/3] resolve --- .../GetAppointmentDetails.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/automationtests/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml b/automationtests/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml index c3cd9f81772..01341040ef5 100644 --- a/automationtests/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml +++ b/automationtests/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml @@ -24,23 +24,6 @@ GetAppointmentDetails: "registration_center_id": "10003" }' - Prereg_GetAppointmentDetails_Canceled_Application_sid: - endPoint: /preregistration/v1/appointment/{preRegistrationId} - role: batch - restMethod: get - inputTemplate: preReg/GetAppointmentDetails/getAppointmentDetails - outputTemplate: preReg/GetAppointmentDetails/getAppointmentDetailsResult - input: '{ - "preRegistrationId": "$ID:CreatePrereg_Smoke_CancellAppointment_sid_preRegistrationId$" -}' - output: '{ - "errors": [ - { - "errorCode": "PRG_APP_013" - } - ] -}' - Prereg_GetAppointmentDetails_inValid_preRegistrationId: endPoint: /preregistration/v1/appointment/{preRegistrationId} role: batch From be33defec8f7d019977830640d04890c58e1598d Mon Sep 17 00:00:00 2001 From: Anup Nehe Date: Mon, 25 Sep 2023 15:20:55 +0530 Subject: [PATCH 2/3] MOSIP-28071 --- .../apirig/admin/fw/util/AdminTestUtil.java | 26 +++++-- .../apirig/testrunner/MosipTestRunner.java | 5 +- .../testrig/apirig/testscripts/KycAuth.java | 2 +- ...ostWithBodyAndQueryParamsForAutoGenId.java | 12 +++- .../esignet/KycBioAuth/KycBioAuth.yml | 72 +++++++++++++------ .../PmsIntegration/UploadCert/UploadCert.yml | 2 +- .../testNgXmlFiles/esignetSuite.xml | 12 +++- 7 files changed, 95 insertions(+), 36 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 14acbba3836..88e7fce1807 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 @@ -143,7 +143,7 @@ public class AdminTestUtil extends BaseTestCase { + "config/healthCheckEndpoint.properties"; private static String serverComponentsCommitDetails; - String token = null; + String token = null; String idToken = null; String adminAutoGeneratedIdPropFileName = properties.getProperty("adminAutoGeneratedIdPropFileName"); String masterDataAutoGeneratedIdPropFileName = properties.getProperty("masterDataAutoGeneratedIdPropFileName"); @@ -2827,9 +2827,9 @@ public String inputJsonKeyWordHandeler(String jsonString, String testCaseName) { jsonString = replaceKeywordWithValue(jsonString, "$LOCATIONCODE$", locationCode); // Need to handle int replacement - // if (jsonString.contains("$HIERARCHYLEVEL$")) - // jsonString = replaceKeywordWithValue(jsonString, "$HIERARCHYLEVEL$", - // hierarchyLevel); + if (jsonString.contains("$HIERARCHYLEVEL$")) + jsonString = replaceKeywordWithValue(jsonString, "$HIERARCHYLEVEL$", + String.valueOf(hierarchyLevel)); if (jsonString.contains("$HIERARCHYNAME$")) jsonString = replaceKeywordWithValue(jsonString, "$HIERARCHYNAME$", hierarchyName); @@ -3455,16 +3455,30 @@ private String replaceIdWithAutogeneratedId(String jsonString, String idKey, Str else time += " AM"; jsonString = replaceKeywordWithValue(jsonString, keyToReplace, time); - } else - jsonString = replaceKeywordWithValue(jsonString, keyToReplace, props.getProperty(keyForIdProperty)); + } else { + if(keyForIdProperty.equals("UploadPartnerCert_Misp_Valid_Smoke_sid_signedCertificateData")) { + String certData = props.getProperty(keyForIdProperty); + if (System.getProperty(GlobalConstants.OS_NAME).toLowerCase().contains(GlobalConstants.WINDOWS)) { + certData = certData.replaceAll("\n", "\\\\n"); + } else { + certData = certData.replaceAll("\n", "\\\\n"); + + } + jsonString = replaceKeywordWithValue(jsonString, keyToReplace, certData); + } + else + jsonString = replaceKeywordWithValue(jsonString, keyToReplace, props.getProperty(keyForIdProperty)); + } if (jsonString.contains("\u200B")) { jsonString = jsonString.replaceAll("\u200B", ""); } if (jsonString.contains("\\p{Cf}")) { jsonString = jsonString.replaceAll("\\p{Cf}", ""); } + jsonString = replaceIdWithAutogeneratedId(jsonString, idKey, autoGenIdFileName); + if (jsonString.contains("\u200B")) { jsonString = jsonString.replaceAll("\u200B", ""); } diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/automationtests/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index 9d62b4402c5..a95f4927792 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -100,11 +100,10 @@ public static void main(String[] arg) { } if (BaseTestCase.listOfModules.contains(GlobalConstants.MASTERDATA)) { - - AdminTestUtil.getLocationLevelData(); - AdminTestUtil.getLocationData(); BaseTestCase.mapUserToZone(); BaseTestCase.mapZone(); + AdminTestUtil.getLocationLevelData(); + AdminTestUtil.getLocationData(); AdminTestUtil.getZoneName(); diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/KycAuth.java b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/KycAuth.java index 450782e2509..1a4304726f7 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/KycAuth.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/KycAuth.java @@ -121,7 +121,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad HashMap headers = new HashMap<>(); headers.put(SIGNATURE_HEADERNAME, signature); String token = kernelAuthLib.getTokenByRole(testCaseDTO.getRole()); - + headers.put(COOKIENAME, token); logger.info("******Post request Json to EndPointUrl: " + ApplnURI + testCaseDTO.getEndPoint() + " *******"); diff --git a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java index 3d13d5114ff..5fe4c9e5035 100644 --- a/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java +++ b/automationtests/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java @@ -1,6 +1,7 @@ package io.mosip.testrig.apirig.testscripts; import java.lang.reflect.Field; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -81,9 +82,18 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad logger.info("Not Getting"+GlobalConstants.POST_REQ_URL + testCaseDTO.getTestCaseName() + " *******"); } + Map> ouputValid = null; + if(testCaseName.contains("_StatusCode")) { + + OutputValidationDto customResponse = customStatusCodeResponse(String.valueOf(response.getStatusCode()), testCaseDTO.getOutput()); + + ouputValid = new HashMap<>(); + ouputValid.put("expected vs actual", List.of(customResponse)); + }else { - Map> ouputValid = OutputValidationUtil + ouputValid = OutputValidationUtil .doJsonOutputValidation(response.asString(), getJsonFromTemplate(testCaseDTO.getOutput(), testCaseDTO.getOutputTemplate()), testCaseDTO.isCheckErrorsOnlyInResponse()); + } Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); if (!OutputValidationUtil.publishOutputResult(ouputValid)) diff --git a/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuth.yml b/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuth.yml index 1f9c6296e51..5c3d73368a0 100644 --- a/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuth.yml +++ b/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuth.yml @@ -5,7 +5,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/KycBioAuth/KycBioAuthResultKycStatus input: '{ "bioSubType": "", "bioType": "FACE", @@ -27,13 +27,14 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": true + "kycStatus": true }' Esignet_KycBioAuth_vid_all_Valid_Smoke: endPoint: /v1/identity/createAuthRequest?id=$ID:Generate_Perpetual_VID_Kyc_Valid_Smoke_sid_vid$&idType=VID&isKyc=true&isInternal=false&transactionId=$TRANSACTIONID$&isNewInternalAuth=false&isPreLTS=false&signWithMisp=true&partnerName=$ID:PartnerSelfRegistration_Misp_Valid_Smoke_sid_partnerId$&keyFileNameByPartnerName=true​&Authtype=bio&moduleName=$MODULENAME$ role: resident restMethod: post + checkErrorsOnlyInResponse: true validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth outputTemplate: esignet/KycBioAuth/KycBioAuthResult @@ -58,7 +59,8 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": true + "authStatus": "$IGNORE$", + "kycStatus": true }' Esignet_KycBioAuth_uin_Invalid_Biovalue_Neg: @@ -67,7 +69,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/error input: '{ "bioSubType": "", "bioType": "FACE", @@ -89,7 +91,11 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": false + "errors": [ + { + "errorCode": "IDA-BIA-001" + } + ] }' Esignet_KycBioAuth_vid_Invalid_Biovalue_Neg: @@ -98,7 +104,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/error input: '{ "bioSubType": "", "bioType": "FACE", @@ -120,7 +126,11 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": false + "errors": [ + { + "errorCode": "IDA-BIA-001" + } + ] }' Esignet_KycBioAuth_uin_RingFinger_all_Valid_Smoke: @@ -129,7 +139,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/KycBioAuth/KycBioAuthResultKycStatus input: '{ "bioSubType": "Left RingFinger", "bioType": "Finger", @@ -151,7 +161,7 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": true + "kycStatus": true }' Esignet_KycBioAuth_vid_RingFinger_all_Valid_Smoke: @@ -160,7 +170,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/KycBioAuth/KycBioAuthResultKycStatus input: '{ "bioSubType": "Left RingFinger", "bioType": "Finger", @@ -182,7 +192,7 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": true + "kycStatus": true }' Esignet_KycBioAuth_uin_RingFinger_Invalid_Biovalue_Neg: @@ -191,7 +201,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/error input: '{ "bioSubType": "Left RingFinger", "bioType": "Finger", @@ -213,7 +223,11 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": false + "errors": [ + { + "errorCode": "IDA-BIA-001" + } + ] }' Esignet_KycBioAuth_vid_RingFinger_Invalid_Biovalue_Neg: @@ -222,7 +236,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/error input: '{ "bioSubType": "Left RingFinger", "bioType": "Finger", @@ -244,7 +258,11 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": false + "errors": [ + { + "errorCode": "IDA-BIA-001" + } + ] }' Esignet_KycBioAuth_uin_LeftIris_all_Valid_Smoke: @@ -253,7 +271,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/KycBioAuth/KycBioAuthResultKycStatus input: '{ "bioSubType": "Left", "bioType": "Iris", @@ -275,7 +293,7 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": true + "kycStatus": true }' Esignet_KycBioAuth_vid_LeftIris_all_Valid_Smoke: @@ -284,7 +302,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/KycBioAuth/KycBioAuthResultKycStatus input: '{ "bioSubType": "Left", "bioType": "Iris", @@ -306,7 +324,7 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": true + "kycStatus": true }' Esignet_KycBioAuth_uin_LeftIris_Invalid_Biovalue_Neg: @@ -315,7 +333,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/error input: '{ "bioSubType": "Left", "bioType": "Iris", @@ -337,7 +355,11 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": false + "errors": [ + { + "errorCode": "IDA-BIA-001" + } + ] }' Esignet_KycBioAuth_vid_LeftIris_Invalid_Biovalue_Neg: @@ -346,7 +368,7 @@ KycBioAuth: restMethod: post validityCheckRequired: true inputTemplate: esignet/KycBioAuth/KycBioAuth - outputTemplate: esignet/KycBioAuth/KycBioAuthResult + outputTemplate: esignet/error input: '{ "bioSubType": "Left", "bioType": "Iris", @@ -368,5 +390,9 @@ KycBioAuth: "kycAuthEndPoint": "/idauthentication/v1/kyc-auth/delegated/$ID:GenerateMispLK_All_Valid_Smoke_sid_licenseKey$​/$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$​/$ID:CreateOIDCClient_Misp_Valid_Smoke_sid_clientId$" }' output: '{ - "authStatus": false + "errors": [ + { + "errorCode": "IDA-BIA-001" + } + ] }' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/PmsIntegration/UploadCert/UploadCert.yml b/automationtests/src/main/resources/esignet/PmsIntegration/UploadCert/UploadCert.yml index 2e3646aefde..ff3ddca3579 100644 --- a/automationtests/src/main/resources/esignet/PmsIntegration/UploadCert/UploadCert.yml +++ b/automationtests/src/main/resources/esignet/PmsIntegration/UploadCert/UploadCert.yml @@ -15,7 +15,7 @@ uploadPartnerCert: "errors": "$IGNORE$" }' - Esignet_UploadPartnerCert_Misp_Valid_Smoke: + Esignet_UploadPartnerCert_Misp_Valid_Smoke_sid: endPoint: /v1/partnermanager/partners/certificate/upload role: partner checkErrorsOnlyInResponse: true diff --git a/automationtests/testNgXmlFiles/esignetSuite.xml b/automationtests/testNgXmlFiles/esignetSuite.xml index 52d7f98a630..7d938151079 100644 --- a/automationtests/testNgXmlFiles/esignetSuite.xml +++ b/automationtests/testNgXmlFiles/esignetSuite.xml @@ -65,8 +65,18 @@ + - + + + + + + + + + From a1c495f798d4d01df7a57336816c98eb5e08d98b Mon Sep 17 00:00:00 2001 From: Anup Nehe Date: Mon, 25 Sep 2023 21:13:05 +0530 Subject: [PATCH 3/3] add resident test case&esignet --- .../KycBioAuth/KycBioAuthResultKycStatus.hbs | 5 + .../UpdatePartnerCertificate.yml | 15 + .../updatePartnerCertificate.hbs | 7 + .../updatePartnerCertificateResult.hbs | 3 + .../resident/AddIdentity/AddIdentity.yml | 88 ++++++ .../GenerateVID/createGenerateVID.yml | 267 ++++++++++++++++++ 6 files changed, 385 insertions(+) create mode 100644 automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuthResultKycStatus.hbs create mode 100644 automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/UpdatePartnerCertificate.yml create mode 100644 automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificate.hbs create mode 100644 automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificateResult.hbs diff --git a/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuthResultKycStatus.hbs b/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuthResultKycStatus.hbs new file mode 100644 index 00000000000..742a72ac67d --- /dev/null +++ b/automationtests/src/main/resources/esignet/KycBioAuth/KycBioAuthResultKycStatus.hbs @@ -0,0 +1,5 @@ +{ + "response": { + "kycStatus": {{kycStatus}} + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/UpdatePartnerCertificate.yml b/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/UpdatePartnerCertificate.yml new file mode 100644 index 00000000000..9432fd305dc --- /dev/null +++ b/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/UpdatePartnerCertificate.yml @@ -0,0 +1,15 @@ +updatePartnerCertificate: + ESignet_updatePartnerCertificate_StatusCode_AuthDemoUrl_All_Valid_Smoke: + endPoint: /v1/identity/updatePartnerCertificate + role: partner + restMethod: post + inputTemplate: esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificate + outputTemplate: esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificateResult + input: '{ + "certData": "$ID:UploadPartnerCert_Misp_Valid_Smoke_sid_signedCertificateData$", + "partnerType": "MISP", + "partnerName": "$ID:PartnerSelfRegistration_Misp_Valid_Smoke_sid_partnerId$", + "keyFileNameByPartnerName": "true", + "moduleName": "esignet" + }' + output: "200" diff --git a/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificate.hbs b/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificate.hbs new file mode 100644 index 00000000000..db10966a68b --- /dev/null +++ b/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificate.hbs @@ -0,0 +1,7 @@ +{ + "certData": "{{certData}}", + "partnerType": "{{partnerType}}", + "partnerName": "{{partnerName}}", + "keyFileNameByPartnerName": "{{keyFileNameByPartnerName}}", + "moduleName": "{{moduleName}}" +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificateResult.hbs b/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificateResult.hbs new file mode 100644 index 00000000000..0e0dcd235c4 --- /dev/null +++ b/automationtests/src/main/resources/esignet/PmsIntegration/UpdatePartnerCertificate/updatePartnerCertificateResult.hbs @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml b/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml index 11b323f6509..487a3f94347 100644 --- a/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml +++ b/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml @@ -609,4 +609,92 @@ AddIdentity: }' output: '{ "status":"ACTIVATED" +}' + + Resident_AddIdentity_withInValid_DOB_Neg: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: resident/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: resident/error + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "15/04/1998", + "postalCode": "14022", + "email": "Resident_AddIdentity_withInValid_DOB_Neg@mosip.net", + "phone": "9876543210", + "mobileno": "9876543210", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "errors": [ + { + "errorCode": "IDR-IDC-002" + } + ] +}' + + Resident_AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos: + 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$", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos@mosip.net", + "phone": "9876543210", + "mobileno": "9876543210", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" +}' + + Resident_AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos: + 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$", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos@mosip.net", + "phone": "9876543210", + "mobileno": "9876543210", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" }' \ No newline at end of file diff --git a/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml b/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml index dc9d93deb56..4d8f42729a8 100644 --- a/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml +++ b/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml @@ -2673,4 +2673,271 @@ GenerateVID: "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", "maskedEmail": "$IGNORE$" } +}' + + Resident_Generate_Temporary_VID_ONE_Valid_Smoke_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_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + + Resident_Generate_Temporary_VID_TWO_Valid_Smoke_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_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + + Resident_Generate_Temporary_VID_Three_Valid_Smoke_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_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + + Resident_Generate_Temporary_VID_FOUR_Valid_Smoke_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_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + + Resident_Generate_Temporary_VID_FIVE_Valid_Smoke_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_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + + Resident_Generate_Temporary_VID_SIX_Valid_Smoke_sid: + endPoint: /resident/v1/vid + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: resident/GenerateVID/createGenerateVID + outputTemplate: resident/GenerateVID/createGenerateVIDResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_VID_Six_smoke_Pos_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_Valid_First_Smoke_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_ToCreate_PreVid_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_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_SecondTime_Smoke_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_ToCreate_PreVid_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_UIN$", + "individualIdType": "UIN", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } + }' \ No newline at end of file