Skip to content

Commit

Permalink
INJICERT-213- Negative testcases (#97)
Browse files Browse the repository at this point in the history
* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

* INJICERT-213- Negative testcases

Signed-off-by: maheswaras <[email protected]>

---------

Signed-off-by: maheswaras <[email protected]>
  • Loading branch information
maheswaras authored Oct 16, 2024
1 parent 832b85d commit 0f593f0
Show file tree
Hide file tree
Showing 19 changed files with 994 additions and 105 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
GetCredentialForMockIDA:
InjiCertify_GetCredentialForMockIDA_IdpAccessToken_all_Valid_Smoke:
endPoint: $INJICERTIFYMOCKIDABASEURL$/v1/certify/issuance/credential
uniqueIdentifier: TC_InjiCertify_GetCredentialForMockIDA_01
description: Get credentials for Mock with all valid data
role: resident
checkErrorsOnlyInResponse: true
restMethod: post
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"encodedHash": "{{encodedHash}}",
"requestTime": "{{requestTime}}",
"request": {
"transactionId": "{{transactionId}}",
"individualId": "{{individualId}}",
"challengeList" : [
{
"authFactorType" : "{{authFactorType}}",
"challenge" : "{{challenge}}",
"format": "{{format}}"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
AuthenticateUserForMockIDANegTC:
InjiCertify_ESignet_AuthenticateUserVCI_ForMockIDA_uin_Otp_Valid_Smoke_For_Neg_Flow:
endPoint: $ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC
outputTemplate: injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTCResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_transactionId$",
"individualId": "6553455",
"authFactorType" : "OTP",
"challenge" : "111111",
"format": "alpha-numeric",
"sendOtp":{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_transactionId$",
"individualId": "6553455",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "injicertify/SendOtp/SendOtp",
"sendOtpEndPoint": "$ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/send-otp"
}
}'
output: '{
"sendOtpResp":{
"maskedMobile": "$IGNORE$",
"sendOtpResTemplate":"injicertify/SendOtp/SendOtpResult",
"maskedEmail": "$IGNORE$"
}
}'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"encodedHash": "{{encodedHash}}",
"requestTime": "{{requestTime}}",
"request": {
"transactionId": "{{transactionId}}",
"acceptedClaims": [
{{#each acceptedClaims}}
"{{claim}}"
{{#unless @last}},{{/unless}}
{{/each}}
],
"permittedAuthorizeScopes": [
{{#each permittedAuthorizeScopes}}
"{{scope}}"
{{#unless @last}},{{/unless}}
{{/each}}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
AuthorizationCodeForMockIDANegTC:
InjiCertify_ESignet_AuthorizationCode_ForMockIDA_All_Valid_Smoke_sid_For_Neg_Flow:
endPoint: $ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC
outputTemplate: injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTCResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_transactionId$"
}'
output: '{
}'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"grant_type": "{{grant_type}}",
"code": "{{code}}",
"client_id": "{{client_id}}",
"client_assertion_type": "{{client_assertion_type}}",
"client_assertion": "{{client_assertion}}",
"redirect_uri": "{{redirect_uri}}",
"code_verifier": "{{code_verifier}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
GenerateTokenForMockIDANegTC:
InjiCertify_ESignet_GenerateToken_ForMockIDA_Valid_Smoke_sid_For_Neg_Flow:
endPoint: $ESIGNETMOCKIDABASEURL$/v1/esignet/oauth/v2/token
role: resident
restMethod: post
validityCheckRequired: true
inputTemplate: injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC
outputTemplate: injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTCResult
input: '{
"grant_type": "authorization_code",
"code": "$ID:ESignet_AuthorizationCode_ForMockIDA_All_Valid_Smoke_sid_For_Neg_Flow_code$",
"client_id": "$ID:ESignet_CreateOIDCClientV2_ForMockIDA_all_Valid_Smoke_sid_clientId$",
"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
"client_assertion": "$CLIENT_ASSERTION_USER4_JWT$",
"redirect_uri": "$IDPREDIRECTURI$",
"code_verifier": "$CODEVERIFIER$"
}'
output: '{
"token_type": "Bearer"
}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"token_type": "{{token_type}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"client_id": "{{client_id}}",
"idpAccessToken": "{{idpAccessToken}}",
"format": "{{format}}",
"credential_definition" : {
"type": [
{{#each type}}
"{{types}}"
{{#unless @last}},{{/unless}}
{{/each}}
],
"@context": [
{{#each @context}}
"{{context}}"
{{#unless @last}},{{/unless}}
{{/each}}
],
},
"proof": {
"proof_type": "{{proof_type}}",
"jwt": "{{proof_jwt}}"
}
}
Loading

0 comments on commit 0f593f0

Please sign in to comment.