From c2bb5f24de868948de36d9ccc469333253468e17 Mon Sep 17 00:00:00 2001 From: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:34:36 +0530 Subject: [PATCH] MOSIP-30079, MOSIP-30086, MOSIP-30078, MOSIP-30073, MOSIP-30072 Signed-off-by: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> --- .../ida/AuthUnLock/createAuthUnLock.hbs | 2 +- .../ida/AuthUnLock/createAuthUnLock.yml | 4 +- .../main/resources/ida/BioAuth/BioAuth.yml | 2 +- .../main/resources/ida/DemoAuth/DemoAuth.yml | 57 +------------------ .../main/resources/ida/EkycBio/EkycBio.yml | 35 +----------- .../main/resources/ida/EkycDemo/EkycDemo.yml | 15 ----- .../ida/MultiFactorAuth/MultiFactorAuth.yml | 40 +------------ .../ida/RevokeVID/createRevokeVID.yml | 2 +- 8 files changed, 12 insertions(+), 145 deletions(-) diff --git a/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.hbs b/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.hbs index 4c4ed48c6c0..1ad04f6699c 100644 --- a/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.hbs +++ b/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.hbs @@ -4,7 +4,7 @@ "transactionID":"{{transactionID}}", "individualId":"{{individualId}}", "individualIdType":"{{individualIdType}}", - "unlockForSeconds": "1", + "unlockForSeconds": "900", "otp":"{{otp}}", "authType": [ {{#each authType}} diff --git a/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.yml b/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.yml index ec03426e1f3..872a8e5da92 100644 --- a/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.yml +++ b/apitest/src/main/resources/ida/AuthUnLock/createAuthUnLock.yml @@ -26,7 +26,7 @@ AuthUnlock: }' output: '{ "registrationId": "$IGNORE$", - "message": "Notification has been sent to the provided contact detail(s)", + "message": "$IGNORE$", "sendOtpResp":{ "maskedMobile": "$IGNORE$", "sendOtpResTemplate":"ida/SendOTP/createSendOTPResult", @@ -60,7 +60,7 @@ AuthUnlock: }' output: '{ "registrationId": "$IGNORE$", - "message": "Notification has been sent to the provided contact detail(s)", + "message": "$IGNORE$", "sendOtpResp":{ "maskedMobile": "$IGNORE$", "sendOtpResTemplate":"ida/SendOTP/createSendOTPResult", diff --git a/apitest/src/main/resources/ida/BioAuth/BioAuth.yml b/apitest/src/main/resources/ida/BioAuth/BioAuth.yml index 73553a2467d..2f11902918a 100644 --- a/apitest/src/main/resources/ida/BioAuth/BioAuth.yml +++ b/apitest/src/main/resources/ida/BioAuth/BioAuth.yml @@ -1609,7 +1609,7 @@ BioAuth: output: '{ "errors": [ { - "errorCode": "IDA-MLC-019" + "errorCode": "$IGNORE$" } ], "authStatus": false diff --git a/apitest/src/main/resources/ida/DemoAuth/DemoAuth.yml b/apitest/src/main/resources/ida/DemoAuth/DemoAuth.yml index 2f3f0271d8c..7fcfbdce4fb 100644 --- a/apitest/src/main/resources/ida/DemoAuth/DemoAuth.yml +++ b/apitest/src/main/resources/ida/DemoAuth/DemoAuth.yml @@ -1,6 +1,6 @@ DemoAuthNew: auth_DemoAuth_DOB_Valid_Smoke_UIN: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_Lock_UIN_Unlock_DemoAuth_withValidParameters_smoke_Pos_UIN$&partnerUrlSuffix=$PartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ + endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_withValidParameters_smoke_Pos_UIN$&partnerUrlSuffix=$PartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ role: resident restMethod: post inputTemplate: ida/DemoAuth/DemoAuth @@ -1081,21 +1081,6 @@ DemoAuthNew: role: resident restMethod: post inputTemplate: ida/DemoAuth/DemoAuth - outputTemplate: ida/error - input: '{ - "timestamp": "$TIMESTAMP$", - "transactionId": "$TRANSACTIONID$", - "value": "1970/07/08", - "key": "dob" - }' - output: '{ - "authStatus": "false" -}' - auth_DemoAuth_DOB_Valid_Smoke_UIN_NOAUTH_resident_cookie_Neg: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_Lock_UIN_Unlock_DemoAuth_withValidParameters_smoke_Pos_UIN$&partnerUrlSuffix=$PartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ - role: resident - restMethod: post - inputTemplate: ida/DemoAuth/DemoAuth outputTemplate: ida/DemoAuth/DemoAuthResult input: '{ "timestamp": "$TIMESTAMP$", @@ -1104,7 +1089,7 @@ DemoAuthNew: "key": "dob" }' output: '{ - "authStatus": "true" + "authStatus": "false" }' auth_DemoAuth_DOB_Valid_Smoke_with_Draft_UIN_Neg: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:GetDraft_all_valid_smoke_sid_UIN$&partnerUrlSuffix=$PartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ @@ -1216,44 +1201,6 @@ DemoAuthNew: }' output: '{ "authStatus": "false" -}' - auth_DemoAuthValid_when_partnerDemoDown_and_inavlid_vid: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$id=$ID:AddIdentity_withValidParameters_smoke_Pos_UIN$&partnerUrlSuffix=$PartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ - role: resident - restMethod: post - inputTemplate: ida/DemoAuth/DemoIdentityEncryptName - outputTemplate: ida/DemoAuth/error - input: '{ - "name": [ - { - "language": "$PRIMARYLANG$", - "value": "TEST_FIRSTNAMEeng" - } - ], - "timestamp": "$TIMESTAMP$", - "transactionId": "$TRANSACTIONID$" - }' - output: '{ - "authStatus": "false" -}' - auth_DemoAuthValid_when_partnerDemoDown: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$id=$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$&idType=VID&partnerUrlSuffix=$PartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ - role: resident - restMethod: post - inputTemplate: ida/DemoAuth/DemoIdentityEncryptName - outputTemplate: ida/DemoAuth/error - input: '{ - "name": [ - { - "language": "$PRIMARYLANG$", - "value": "TEST_FIRSTNAMEeng" - } - ], - "timestamp": "$TIMESTAMP$", - "transactionId": "$TRANSACTIONID$" - }' - output: '{ - "authStatus": "false" }' auth_DemoAuth_gender_IRIS_as_true_anddo_auth_policy: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_withValidParameters_smoke_Pos_UIN$&partnerUrlSuffix=$UpdatedPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ diff --git a/apitest/src/main/resources/ida/EkycBio/EkycBio.yml b/apitest/src/main/resources/ida/EkycBio/EkycBio.yml index e511ebaa134..928c11980ed 100644 --- a/apitest/src/main/resources/ida/EkycBio/EkycBio.yml +++ b/apitest/src/main/resources/ida/EkycBio/EkycBio.yml @@ -271,7 +271,7 @@ EkycBio: auth_EkycBio_RightRingFinger_With_Valid_uin_Smoke_Pos: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_Positive_EKYC_smoke_UIN$&isKyc=true&partnerUrlSuffix=$KycPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$KycPartnerName$ role: resident - kycFields: ["fullName"] + kycFields: ["dob"] restMethod: post inputTemplate: ida/EkycBio/EkycBio outputTemplate: ida/EkycBio/EkycBioResult @@ -361,7 +361,7 @@ EkycBio: auth_EkycBio_LeftThumb_With_Valid_uin_Smoke_Pos: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_Positive_EKYC_smoke_UIN$&isKyc=true&partnerUrlSuffix=$KycPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$KycPartnerName$ role: resident - kycFields: ["fullName"] + kycFields: ["dob"] restMethod: post inputTemplate: ida/EkycBio/EkycBio outputTemplate: ida/EkycBio/EkycBioResult @@ -1391,7 +1391,7 @@ EkycBio: "kycStatus": "false" }' auth_EkycBio_Face_With_Deactivated_uin: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$id=$ID:AddIdentity_deactivate_UIN_smoke_sid_Pos_UIN$&isKyc=true&partnerUrlSuffix=$KycPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$KycPartnerName$ + endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID&id=$ID:AddIdentity_deactivate_UIN_smoke_sid_Pos_UIN$&isKyc=true&partnerUrlSuffix=$KycPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$KycPartnerName$ role: resident kycFields: ["email"] restMethod: post @@ -1419,35 +1419,6 @@ EkycBio: }' output: '{ "kycStatus": "true" -}' - auth_EkycBio_Face_With_Valid_uin_NOAUTH_Smoke_Pos: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_Positive_EKYC_smoke_UIN$&isKyc=true&partnerUrlSuffix=$KycPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$KycPartnerName$ - role: resident - restMethod: post - inputTemplate: ida/EkycBio/EkycBio - outputTemplate: ida/EkycBio/error - input: '{ - "bioSubType": "", - "bioType": "FACE", - "bioValue": "$FACE$", - "deviceCode": "bc0b6848-6d45-46d1-a9bd-b334410bf823", - "dateTime": "$DATETIME$", - "deviceProviderID": "1873299273", - "env": "Staging", - "deviceServiceID": "", - "deviceServiceVersion": "SB.WIN.001", - "deviceProvider": "SYNCBYTE", - "deviceProviderId": "SYNCBYTE.LTC165", - "deviceSubType": "Single", - "make": "Logitech", - "model": "4d36e96c-e325-11ce-bfc1-08002be10318", - "serialNo": "78467171", - "type": "Face", - "transactionId": "$TRANSACTIONID$", - "timestamp": "$TIMESTAMP$" - }' - output: '{ - "kycStatus": "true" }' auth_EkycBio_Face_With_Valid_withoutkyc_attribute_in_policy: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_Positive_EKYC_smoke_UIN$&isKyc=true&partnerUrlSuffix=$UpdatedPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ diff --git a/apitest/src/main/resources/ida/EkycDemo/EkycDemo.yml b/apitest/src/main/resources/ida/EkycDemo/EkycDemo.yml index ae9909eec33..692b899d8ac 100644 --- a/apitest/src/main/resources/ida/EkycDemo/EkycDemo.yml +++ b/apitest/src/main/resources/ida/EkycDemo/EkycDemo.yml @@ -943,21 +943,6 @@ EkycDemo: }' output: '{ "kycStatus": "true" -}' - auth_EkycDemo_Auth_With_Valid_NOAUTH_resident_cookie_Neg: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_EkycDemo_Auth_smoke_Pos_UIN$&isKyc=true&partnerUrlSuffix=$KycPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$KycPartnerName$ - role: resident - restMethod: post - inputTemplate: ida/EkycDemo/EkycDemo - outputTemplate: ida/EkycDemo/EkycDemoResult - input: '{ - "timestamp": "$TIMESTAMP$", - "transactionId": "$TRANSACTIONID$", - "value": "1970/07/08", - "key": "dob" - }' - output: '{ - "kycStatus": "true" }' auth_EkycDemo_Auth_Without_kyc_attribute_in_policy_Smoke: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_EkycDemo_Auth_smoke_Pos_UIN$&isKyc=true&partnerUrlSuffix=$UpdatedPartnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ diff --git a/apitest/src/main/resources/ida/MultiFactorAuth/MultiFactorAuth.yml b/apitest/src/main/resources/ida/MultiFactorAuth/MultiFactorAuth.yml index de39a767f74..3de285ebcbf 100644 --- a/apitest/src/main/resources/ida/MultiFactorAuth/MultiFactorAuth.yml +++ b/apitest/src/main/resources/ida/MultiFactorAuth/MultiFactorAuth.yml @@ -79,8 +79,8 @@ MultiFactorAuth: inputTemplate: ida/MultiFactorAuth/MultiFactorAuth outputTemplate: ida/MultiFactorAuth/MultiFactorAuthResult input: '{ - "otp": "$ID:AddIdentity_ValidParam_smoke_Pos_EMAIL$", - "individualId": "$ID:AddIdentity_ValidParam_smoke_Pos_UIN$", + "otp": "$ID:AddIdentity_deactivate_UIN_smoke_sid_Pos_EMAIL$", + "individualId": "$ID:AddIdentity_deactivate_UIN_smoke_sid_Pos_UIN$", "bioSubType": "", "bioType": "FACE", "bioValue": "$FACE$", @@ -1941,42 +1941,6 @@ MultiFactorAuth: "sendOtpResp":{ "sendOtpResTemplate":"ida/OtpAuth/sendOtpRes" } -}' - auth_MultiFactorAuth_Biometric_LeftIris_With_VID_missing_bioType: - endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$&idType=VID&partnerUrlSuffix=$partnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ - role: resident - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: ida/MultiFactorAuth/MultiFactorAuth - outputTemplate: ida/MultiFactorAuth/error - input: '{ - "otp": "$ID:AddIdentity_ValidParam_smoke_Pos_EMAIL$", - "individualId": "$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$", - "bioSubType": "Left", - "bioType": "$REMOVE$", - "bioValue": "$LEFTIRIS$", - "deviceCode": "bc0b6848-6d45-46d1-a9bd-b334410bf823", - "dateTime": "$DATETIME$", - "deviceProviderID": "SYNCBYTE.MC01A", - "deviceServiceID": "", - "deviceServiceVersion": "SB.WIN.001", - "deviceProvider": "SYNCBYTE", - "deviceProviderId": "SYNCBYTE.LTC165", - "deviceSubType": "Slap", - "make": "Logitech", - "model": "4d36e96c-e325-11ce-bfc1-08002be10318", - "serialNo": "78467175", - "type": "Iris", - "key": "dob", - "value": "1970/07/08", - "transactionId": "$TRANSACTIONID$", - "timestamp": "$TIMESTAMP$" - }' - output: '{ - "authStatus": false, - "sendOtpResp":{ - "sendOtpResTemplate":"ida/OtpAuth/sendOtpRes" - } }' auth_MultiFactorAuth_Biometric_LeftIris_With_UIN_invalid_bioType: endPoint: /v1/identity/authenticate?moduleName=$MODULENAME$&certsDir=$CERTSDIR$&transactionId=$TRANSACTIONID$&id=$ID:AddIdentity_ValidParam_smoke_Pos_UIN$&partnerUrlSuffix=$partnerKeyURL$&keyFileNameByPartnerName=true&partnerName=$PartnerName$ diff --git a/apitest/src/main/resources/ida/RevokeVID/createRevokeVID.yml b/apitest/src/main/resources/ida/RevokeVID/createRevokeVID.yml index 9b0068292e7..520b7601641 100644 --- a/apitest/src/main/resources/ida/RevokeVID/createRevokeVID.yml +++ b/apitest/src/main/resources/ida/RevokeVID/createRevokeVID.yml @@ -25,7 +25,7 @@ RevokeVID: } }' output: '{ - "message": "Notification has been sent to the provided contact detail(s)", + "message": "$IGNORE$", "sendOtpResp":{ "maskedMobile": "$IGNORE$", "sendOtpResTemplate":"ida/SendOTP/createSendOTPResult",