Skip to content

Commit

Permalink
MOSIP-38033 negative test case automation for IDTAuthentication
Browse files Browse the repository at this point in the history
Signed-off-by: NitinHegde <[email protected]>
  • Loading branch information
hegdenitin committed Dec 3, 2024
1 parent d1e1f25 commit 96f801e
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,33 +268,6 @@ IDTAuthenticationNegTC:
"errorCode": "invalid_auth_factor_type"
}
]
}'
Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_Empty_challenge_Neg:
endPoint: /v1/esignet/authorization/v3/authenticate
uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_11
description: Perform IDT authentication with empty challenge - Failure
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC
outputTemplate: signup/error
input: '{
"encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"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$",
"idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$",
"transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$",
"individualId": "$IDTINDIVIUALID$",
"authFactorType" : "IDT",
"challenge" : ""
}'
output: '{
"errors": [
{
"errorCode": "unknown_error"
}
]
}'
Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_invalid_requestTime_Neg:
endPoint: /v1/esignet/authorization/v3/authenticate
Expand Down Expand Up @@ -553,7 +526,7 @@ IDTAuthenticationNegTC:
output: '{
"errors": [
{
"errorCode": "auth_factor_mismatch"
"errorCode": "invalid_auth_factor_type"
}
]
}'
Expand Down

0 comments on commit 96f801e

Please sign in to comment.