Skip to content

Commit

Permalink
ES-2167 (mosip#542)
Browse files Browse the repository at this point in the history
Signed-off-by: Nandhukumar <[email protected]>
  • Loading branch information
nandhu-kumar authored Jan 22, 2025
1 parent ddb9b37 commit 680d38d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ AuthenticateUserPasswordNegTC:
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
allowedErrorCodes: IDA-PSD-001,invalid_challenge,
allowedErrorCodes: IDA-PSD-001,invalid_challenge,auth_failed
inputTemplate: signup/AuthenticateUserPasswordNegTC/AuthenticateUserPasswordNegTC
outputTemplate: signup/error
input: '{
Expand All @@ -937,14 +937,14 @@ AuthenticateUserPasswordNegTC:
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
allowedErrorCodes: IDA-PSD-001,invalid_challenge,
allowedErrorCodes: IDA-PSD-001,invalid_challenge,auth_failed
inputTemplate: signup/AuthenticateUserPasswordNegTC/AuthenticateUserPasswordNegTC
outputTemplate: signup/error
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_Password_NegTC_Scen1_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_Password_NegTC_Scen1_Valid_Smoke_sid_transactionId$",
"individualId": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"individualId": "$ID:ESignet_GenerateChallenge_STransId_Valid_smoke_Pos_PHONE$",
"authFactorType" : "PWD",
"challenge" : "hghja6757",
"format": "alpha-numeric"
Expand All @@ -960,17 +960,17 @@ AuthenticateUserPasswordNegTC:
endPoint: /v1/esignet/authorization/v3/authenticate
role: resident
restMethod: post
allowedErrorCodes: invalid_challenge_format,invalid_auth_factor_type,invalid_challenge
allowedErrorCodes: invalid_challenge_format,invalid_auth_factor_type,invalid_challenge,auth_failed
checkErrorsOnlyInResponse: true
validityCheckRequired: true
allowedErrorCodes: IDA-PSD-001,invalid_challenge,
allowedErrorCodes: IDA-PSD-001,invalid_challenge,auth_failed
inputTemplate: signup/AuthenticateUserPasswordNegTC/AuthenticateUserPasswordNegTC
outputTemplate: signup/error
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_Password_NegTC_Scen1_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_Password_NegTC_Scen1_Valid_Smoke_sid_transactionId$",
"individualId": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"individualId": "$ID:ESignet_GenerateChallenge_STransId_Valid_smoke_Pos_PHONE$",
"authFactorType" : "PWD",
"challenge" : "11111fdsd$%%VDSF1",
"format": "alpha-numeric"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ RegisterUserNegTC:
endPoint: /v1/signup/registration/register
role: resident
restMethod: post
allowedErrorCodes: invalid_phone,invalid_phone_number
allowedErrorCodes: invalid_phone,invalid_phone_number,identifier_mismatch
inputTemplate: signup/RegisterUser/RegisterUser
outputTemplate: signup/error
input: '{
Expand All @@ -1080,7 +1080,7 @@ RegisterUserNegTC:
output: '{
"errors": [
{
"errorCode": "invalid_phone_number",
"errorCode": "identifier_mismatch",
"errorMessage": "$IGNORE$"
}
]
Expand All @@ -1089,7 +1089,7 @@ RegisterUserNegTC:
endPoint: /v1/signup/registration/register
role: resident
restMethod: post
allowedErrorCodes: invalid_phone_number,invalid_phone
allowedErrorCodes: invalid_phone_number,invalid_phone,identifier_mismatch
inputTemplate: signup/RegisterUser/RegisterUser
outputTemplate: signup/error
input: '{
Expand All @@ -1105,7 +1105,7 @@ RegisterUserNegTC:
output: '{
"errors": [
{
"errorCode": "invalid_phone_number",
"errorCode": "identifier_mismatch",
"errorMessage": "$IGNORE$"
}
]
Expand Down Expand Up @@ -1421,7 +1421,7 @@ RegisterUserNegTC:
"fullName": "$FULLNAMETOREGISTERUSER$",
"requestTime": "$TIMESTAMP$",
"phone": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"preferredLang": "ara"
"preferredLang": "araa"
}'
output: '{
"errors": [
Expand Down Expand Up @@ -1609,13 +1609,13 @@ RegisterUserNegTC:
inputTemplate: signup/RegisterUser/RegisterUser
outputTemplate: signup/error
input: '{
"verifiedTransactionID": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_VTransactionID$",
"username": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"verifiedTransactionID": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_For_Authentication_VTransactionID$",
"username": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_For_Authentication_PHONE$",
"password": "$PASSWORDFORAUTHENTICATION$",
"consent": "AGREE",
"fullName": "$FULLNAMETOREGISTERUSER$",
"requestTime": "$TIMESTAMP$",
"phone": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"phone": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_For_Authentication_PHONE$",
"preferredLang": "khm"
}'
output: '{
Expand All @@ -1627,6 +1627,26 @@ RegisterUserNegTC:
]
}'

Signup_ESignet_RegisterUserNegTC_Valid_smoke_For_Neg_Scenario:
endPoint: /v1/signup/registration/register
role: resident
restMethod: post
inputTemplate: signup/RegisterUser/RegisterUser
outputTemplate: signup/RegisterUser/RegisterUserResult
input: '{
"verifiedTransactionID": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_VTransactionID$",
"username": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"password": "$PASSWORDFORAUTHENTICATION$",
"consent": "AGREE",
"fullName": "$FULLNAMETOREGISTERUSER$",
"requestTime": "$TIMESTAMP$",
"phone": "$ID:ESignet_VerifyChallengeNegTC_STransId_Valid_Smoke_Pos_PHONE$",
"preferredLang": "khm"
}'
output: '{
"status":"PENDING"
}'

Signup_ESignet_RegisterUserNegTC_with_khm_preferredLang:
endPoint: /v1/signup/registration/register
role: resident
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,15 @@ SignupAuthorizeNegTC:
}
]
}'
Signup_ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_multipleSpacesInBetween_scope_Neg:
Signup_ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_multipleSpacesInBetween_scope_Pos:
endPoint: /v1/esignet/authorization/v3/oauth-details
uniqueIdentifier: TC_ESignet_SignupAuthorizeNegTC_14
description: Create consent details and unique transactionID with multiple spaces in between scope - Failure
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
inputTemplate: signup/SignupAuthorizeNegTC/SignupAuthorizeNegTC
outputTemplate: signup/error
outputTemplate: signup/SignupAuthorizeNegTC/SignupAuthorizeNegTCResult
input: '{
"pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$",
"pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$",
Expand All @@ -412,12 +412,6 @@ SignupAuthorizeNegTC:
"idTokenHint": "$REMOVE$"
}'
output: '{
"errors": [
{
"errorCode": "invalid_scope",
"errorMessage": "$IGNORE$"
}
]
}'
Signup_ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_scope_Neg:
endPoint: /v1/esignet/authorization/v3/oauth-details
Expand Down

0 comments on commit 680d38d

Please sign in to comment.