diff --git a/automationtests/src/main/resources/partner/GetPartnersPolicy/GetPartnersPolicy.yml b/automationtests/src/main/resources/partner/GetPartnersPolicy/GetPartnersPolicy.yml index 07f1045e567..edbb3ba011b 100644 --- a/automationtests/src/main/resources/partner/GetPartnersPolicy/GetPartnersPolicy.yml +++ b/automationtests/src/main/resources/partner/GetPartnersPolicy/GetPartnersPolicy.yml @@ -12,8 +12,8 @@ GetPartnersPolicy: "requesttime": "$TIMESTAMP$" }' output: '{ - "policyGroupId": "mpolicygroup-default-auth", - "policyGroupName": "mpolicygroup-default-auth", + "policyGroupId": "521893", + "policyGroupName": "auth_module", "policyId": "$IGNORE$", "policyName": "$IGNORE$", "status": "PUBLISHED" diff --git a/automationtests/src/main/resources/partner/policy/Search/SearchPolicy.yml b/automationtests/src/main/resources/partner/policy/Search/SearchPolicy.yml index 67ef3fedb43..d92711efe07 100644 --- a/automationtests/src/main/resources/partner/policy/Search/SearchPolicy.yml +++ b/automationtests/src/main/resources/partner/policy/Search/SearchPolicy.yml @@ -89,7 +89,7 @@ createSearchPolicy: output: '{ "data": [ { - "policyType": "Datashare", + "policyType": "DataShare", "schema": "$IGNORE$" } ] diff --git a/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml b/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml index dbff54d3968..4be1dba6b28 100644 --- a/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml +++ b/automationtests/src/main/resources/resident/AddIdentity/AddIdentity.yml @@ -722,4 +722,120 @@ AddIdentity: }' output: '{ "status":"ACTIVATED" +}' + + Resident_AddIdentity_withValidParameters_ToCreate_Three_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$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_ToCreate_Three_PreVid_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_To_Genrate_TempVid_Use_3_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$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_To_Genrate_TempVid_Use_3_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_For_SendOtp_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$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_For_SendOtp_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_To_Check_Ten_Transactions_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$", + "addressCopy": "Y", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "Resident_AddIdentity_withValidParameters_For_SendOtp_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/AuthLock/createAuthLock.yml b/automationtests/src/main/resources/resident/AuthLock/createAuthLock.yml index 7d16e2ce9c3..db21bc743b3 100644 --- a/automationtests/src/main/resources/resident/AuthLock/createAuthLock.yml +++ b/automationtests/src/main/resources/resident/AuthLock/createAuthLock.yml @@ -98,6 +98,39 @@ AuthLock: } }' + Resident_AuthLock_VID_Use_All: + endPoint: /resident/v1/req/auth-lock + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: resident/AuthLock/createAuthLock + outputTemplate: resident/AuthLock/createAuthLockResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "individualIdType": "VID", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.authlock", + "version": "v1", + "authType": [{auth: "bio-Iris"},{auth: "demo"},{auth: "bio-FACE"}], + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "individualIdType": "VID", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' + Resident_AuthLock_Valid_UIN_smoke_demo_Pos: endPoint: /resident/v1/req/auth-lock role: resident diff --git a/automationtests/src/main/resources/resident/AuthUnLock/createAuthUnLock.yml b/automationtests/src/main/resources/resident/AuthUnLock/createAuthUnLock.yml index 77b614eb164..0e22a00e364 100644 --- a/automationtests/src/main/resources/resident/AuthUnLock/createAuthUnLock.yml +++ b/automationtests/src/main/resources/resident/AuthUnLock/createAuthUnLock.yml @@ -100,6 +100,40 @@ AuthUnlock: "maskedEmail": "$IGNORE$" } }' + + Resident_AuthUnLock_VID_Use_Pos: + endPoint: /resident/v1/req/auth-unlock + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: resident/AuthUnLock/createAuthUnLock + outputTemplate: resident/AuthUnLock/createAuthUnLockResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "individualIdType": "VID", + "unlockForSeconds": "1", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.authunlock", + "version": "v1", + "authType": [{auth: "bio-Iris"},{auth: "demo"},{auth: "bio-FACE"}], + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "individualIdType": "VID", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' Resident_AuthUnLock_UIN_All_Invalid_Unlock_Seconds: endPoint: /resident/v1/req/auth-unlock role: resident diff --git a/automationtests/src/main/resources/resident/CredentialIssuance/RequestCredentials/ReqCredential.yml b/automationtests/src/main/resources/resident/CredentialIssuance/RequestCredentials/ReqCredential.yml index cc731828d33..8f9f4806807 100644 --- a/automationtests/src/main/resources/resident/CredentialIssuance/RequestCredentials/ReqCredential.yml +++ b/automationtests/src/main/resources/resident/CredentialIssuance/RequestCredentials/ReqCredential.yml @@ -1659,3 +1659,36 @@ RequestCredentials: "maskedEmail": "$IGNORE$" } }' + + Resident_RequestCredentials_euin_VID_Use_sid: + endPoint: /resident/v1/req/credential + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: resident/CredentialIssuance/RequestCredentials/reqCredential + outputTemplate: resident/CredentialIssuance/RequestCredentials/ReqCredentialResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "credentialType": "euin", + "encrypt": "true", + "version": "v1", + "encryptionKey": "abc123", + "requestTime": "$TIMESTAMP$", + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "individualIdType": "VID", + "sendOtpReqTemplate": "resident/SendOTP/createSendOTP", + "sendOtpEndPoint": "/resident/v1/req/otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"resident/SendOTP/createSendOTPResult", + "maskedEmail": "$IGNORE$" + } +}' diff --git a/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml b/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml index dd70f501495..6b89d2ea71e 100644 --- a/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml +++ b/automationtests/src/main/resources/resident/GenerateVID/createGenerateVID.yml @@ -2948,4 +2948,172 @@ GenerateVID: "maskedEmail": "$IGNORE$" } +}' + + Resident_Generate_Perpetual_VID_1_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_Three_PreVid_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_Three_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_ToCreate_Three_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_2_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_Three_PreVid_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_Three_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_ToCreate_Three_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_3_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_Three_PreVid_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_ToCreate_Three_PreVid_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_ToCreate_Three_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_Temporary_VID_use_3_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_TempVid_Use_3_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Temporary", + "otp": "$ID:AddIdentity_withValidParameters_To_Genrate_TempVid_Use_3_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_To_Genrate_TempVid_Use_3_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_For_SendOtp_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_For_SendOtp_smoke_Pos_UIN$", + "individualIdType": "UIN", + "requesttime": "$TIMESTAMP$", + "id": "mosip.resident.vid", + "version": "v1", + "vidType": "Perpetual", + "otp": "$ID:AddIdentity_withValidParameters_For_SendOtp_smoke_Pos_EMAIL$", + "sendOtp":{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:AddIdentity_withValidParameters_For_SendOtp_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 diff --git a/automationtests/src/main/resources/resident/SendOTP/SendOTP.yml b/automationtests/src/main/resources/resident/SendOTP/SendOTP.yml index 0659e54e85f..2d5c47b5a5c 100644 --- a/automationtests/src/main/resources/resident/SendOTP/SendOTP.yml +++ b/automationtests/src/main/resources/resident/SendOTP/SendOTP.yml @@ -51,6 +51,23 @@ SendOTP: "maskedEmail": "$IGNORE$" }' + Resident_SendOTP_Valid_VID_Use_Smoke: + endPoint: /resident/v1/req/otp + role: resident + restMethod: post + inputTemplate: resident/SendOTP/createSendOTP + outputTemplate: resident/SendOTP/createSendOTPResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "individualId": "$ID:Generate_Perpetual_VID_SecondTime_Smoke_sid_vid$", + "individualIdType": "UIN" +}' + output: '{ + "maskedMobile": "XXXXXX3210", + "maskedEmail": "$IGNORE$" + }' + Resident_SendOTP_Valid_UIN_Phone_Smoke: endPoint: /resident/v1/req/otp role: resident @@ -263,4 +280,41 @@ SendOTP: output: '{ "maskedMobile": "XXXXXX3210", "maskedEmail": "$IGNORE$" + }' + + Resident_SendOTP_Valid_VID_Phone_Smoke: + endPoint: /resident/v1/req/otp + role: resident + restMethod: post + inputTemplate: resident/SendOTP/createSendOTPAsPhone + outputTemplate: resident/SendOTP/createSendOTPResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "otpChannel": "[\"PHONE\"]", + "individualId": "$ID:Generate_Perpetual_VID_For_SendOtp_Valid_Smoke_sid_vid$", + "individualIdType": "VID" +}' + output: '{ + "maskedMobile": "XXXXXX3210", + "maskedEmail": "$IGNORE$" + }' + + Resident_SendOTP_Valid_Vid_Email_Smoke: + endPoint: /resident/v1/req/otp + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: resident/SendOTP/createSendOTPAsEmail + outputTemplate: resident/SendOTP/createSendOTPResult + input: '{ + "transactionID": "$TRANSACTIONID$", + "requestTime": "$TIMESTAMP$", + "otpChannel": "[\"EMAIL\"]", + "individualId": "$ID:Generate_Perpetual_VID_For_SendOtp_Valid_Smoke_sid_vid$", + "individualIdType": "VID" +}' + output: '{ + "maskedMobile": "$IGNORE$", + "maskedEmail": "$IGNORE$" }' \ No newline at end of file