Skip to content

Commit

Permalink
Merge pull request #1473 from nandhu-kumar/MOSIP-33327
Browse files Browse the repository at this point in the history
Mosip 33327
  • Loading branch information
lsivanand authored Jun 5, 2024
2 parents be303c4 + 5db7c1c commit a983d39
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 31 deletions.
16 changes: 8 additions & 8 deletions automationtests/src/main/resources/ida/EkycBio/EkycBio2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ EkycBio:
}
]
}'
auth_EkycBio_LeftIris_With_Valid_with_empty_env_Pos:
auth_EkycBio_LeftIris_With_Valid_with_empty_env:
endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$
role: resident
kycFields: ["gender"]
Expand Down Expand Up @@ -2144,9 +2144,9 @@ EkycBio:
}
}'
output: '{
"kycStatus": "true"
"kycStatus": "false"
}'
auth_EkycBio_LeftIris_With_Valid_with_blank_env_Pos:
auth_EkycBio_LeftIris_With_Valid_with_blank_env:
endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$
role: resident
kycFields: ["gender"]
Expand Down Expand Up @@ -2184,9 +2184,9 @@ EkycBio:
}
}'
output: '{
"kycStatus": "true"
"kycStatus": "false"
}'
auth_EkycBio_LeftIris_With_Valid_with_invalid_env_Pos:
auth_EkycBio_LeftIris_With_Valid_with_invalid_env:
endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$
role: resident
kycFields: ["gender"]
Expand Down Expand Up @@ -2224,9 +2224,9 @@ EkycBio:
}
}'
output: '{
"kycStatus": "true"
"kycStatus": "false"
}'
auth_EkycBio_LeftIris_With_Valid_without_env_key_Pos:
auth_EkycBio_LeftIris_With_Valid_without_env:
endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$
role: resident
kycFields: ["gender"]
Expand Down Expand Up @@ -2264,7 +2264,7 @@ EkycBio:
}
}'
output: '{
"kycStatus": "true"
"kycStatus": "false"
}'
auth_EkycBio_Face_With_Valid_With_space_in_domain:
endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$
Expand Down
35 changes: 22 additions & 13 deletions automationtests/src/main/resources/ida/OtpAuth/OtpAuth2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ OtpAuth:
"requestTime": "$TIMESTAMP$",
"individualId": "$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$",
"transactionId": "$TRANSACTIONID$",
"individualIdType": "UIN",
"individualIdType": "VID",
"bio": false,
"demo": false,
"otp": true,
"sendOtp":{
"transactionID": "$TRANSACTIONID$",
"requestTime": "$TIMESTAMP$",
"individualId": "$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$",
"individualIdType": "UIN",
"individualIdType": "VID",
"sendOtpReqTemplate": "ida/OtpAuth/sendOtp",
"sendOtpEndPoint": "/idauthentication/v1/otp/$partnerKeyURL$",
"otpIdentyEnryptRequestPath": "ida/OtpAuth/OtpIdentityEncrypt.json"
Expand Down Expand Up @@ -481,9 +481,7 @@ OtpAuth:
"authStatus": false,
"errors": [
{
"errorCode": "IDA-MLC-002",
"errorMessage": "Invalid UIN",
"actionMessage": "$IGNORE$"
"errorCode": "IDA-MLC-006"
}
],
"sendOtpResp":{
Expand Down Expand Up @@ -521,9 +519,7 @@ OtpAuth:
"authStatus": false,
"errors": [
{
"errorCode": "IDA-MLC-002",
"errorMessage": "Invalid UIN",
"actionMessage": "$IGNORE$"
"errorCode": "IDA-MLC-006"
}
],
"sendOtpResp":{
Expand Down Expand Up @@ -637,7 +633,7 @@ OtpAuth:
"requestTime": "$TIMESTAMP$",
"individualId": "$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$",
"transactionId": "$123@@@@@",
"individualIdType": "UIN",
"individualIdType": "VID",
"bio": false,
"demo": false,
"otp": true,
Expand Down Expand Up @@ -787,7 +783,7 @@ OtpAuth:
checkErrorsOnlyInResponse: true
restMethod: post
inputTemplate: ida/OtpAuth/OtpAuth
outputTemplate: ida/OtpAuth/OtpAuthResult
outputTemplate: ida/OtpAuth/error
input: '{
"requestTime": "$TIMESTAMP$",
"individualId": "$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$",
Expand All @@ -807,7 +803,12 @@ OtpAuth:
}
}'
output: '{
"authStatus": true,
"errors": [
{
"errorCode": "IDA-MLC-006"
}
],
"authStatus": false,
"sendOtpResp":{
"sendOtpResTemplate":"ida/OtpAuth/sendOtpRes"
}
Expand Down Expand Up @@ -844,7 +845,7 @@ OtpAuth:
}
}'
auth_OTP_Auth_With_Invalid_uin_partner:
endPoint: /idauthentication/v1/auth/$partnerKeyURL$
endPoint: /idauthentication/v1/auth/zY22wDwZxwMdlxTZRWrM50m4zBoOiMyUGY/45362768/27822828287
role: resident
checkErrorsOnlyInResponse: true
restMethod: post
Expand All @@ -869,7 +870,15 @@ OtpAuth:
}
}'
output: '{
"authStatus": "false",
"authStatus": false,
"errors": [
{
"errorCode": "IDA-MLC-007"
},
{
"errorCode": "IDA-MPA-001"
}
],
"sendOtpResp":{
"sendOtpResTemplate":"ida/OtpAuth/sendOtpRes"
}
Expand Down
11 changes: 2 additions & 9 deletions automationtests/src/main/resources/ida/OtpAuth/error.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
{
"transactionID": "$IGNORE$",
"version": "$IGNORE$",
"id": "$IGNORE$",
"errors": [
{{#each errors}}
{
"errorCode": "{{errorCode}}",
"errorMessage": "{{errorMessage}}",
"actionMessage": "$IGNORE$"
"errorCode": "{{errorCode}}"
}
{{#unless @last}},{{/unless}}
{{/each}}
],
"responseTime": "$IGNORE$",
"response": {
"authStatus": {{authStatus}},
"authToken": "$IGNORE$"
"authStatus": {{authStatus}}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"transactionID": "$IGNORE$",
"version": "$IGNORE$",
"id": "mosip.identity.auth",
"id": "$IGNORE$",
"responseTime": "$IGNORE$",
"response": {
"authStatus": "{{authStatus}}",
Expand Down

0 comments on commit a983d39

Please sign in to comment.