-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INJICERT-213- Negative testcases (#97)
* 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
1 parent
832b85d
commit 0f593f0
Showing
19 changed files
with
994 additions
and
105 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...rtify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | ||
} | ||
] | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...rtify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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$" | ||
} | ||
}' |
1 change: 1 addition & 0 deletions
1
...VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTCResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
19 changes: 19 additions & 0 deletions
19
...ify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} | ||
] | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...ify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '{ | ||
}' |
1 change: 1 addition & 0 deletions
1
...IMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTCResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
9 changes: 9 additions & 0 deletions
9
...injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | ||
} |
20 changes: 20 additions & 0 deletions
20
...injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
}' |
3 changes: 3 additions & 0 deletions
3
...rtify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTCResult.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"token_type": "{{token_type}}" | ||
} |
23 changes: 23 additions & 0 deletions
23
...injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | ||
} | ||
} |
Oops, something went wrong.