Skip to content

Commit

Permalink
Merge pull request mosip#1481 from nandhu-kumar/release-1.3.0-ES
Browse files Browse the repository at this point in the history
ES-1207
  • Loading branch information
lsivanand authored Jun 11, 2024
2 parents 2a8929c + d7cc61f commit 95aae6c
Showing 1 changed file with 12 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,90 +1,70 @@
AuthorizationCodeSunBirdRCNegTC:
ESignet_AuthorizationCode_SunBirdRCNegTC_Diff_Scope_Neg:
ESignet_AuthorizationCode_SunBirdRCNegTC_Diff_Scope_Pos:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC
outputTemplate: esignet/error
outputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTCRCResult
input: '{
"encodedHash": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen1_AuthCode_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen1_AuthCode_Valid_Smoke_sid_transactionId$",
"permittedAuthorizeScopes": [{scope: "openid profile"}]
}'
output: '{
"errors": [
{
"errorCode": "invalid_permitted_scope"
}
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_Diff_Scope2_Neg:
ESignet_AuthorizationCode_SunBirdRCNegTC_Diff_Scope2_Pos:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC
outputTemplate: esignet/error
outputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTCRCResult
input: '{
"encodedHash": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen2_AuthCode_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen2_AuthCode_Valid_Smoke_sid_transactionId$",
"permittedAuthorizeScopes": [{scope: "openid profile"}, {scope: "sunbird_rc_insurance_vc_ldp"}]
}'
output: '{
"errors": [
{
"errorCode": "invalid_permitted_scope"
}
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_Comma_Separated_Scope_Neg:
ESignet_AuthorizationCode_SunBirdRCNegTC_Comma_Separated_Scope_Pos:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC
outputTemplate: esignet/error
outputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTCRCResult
input: '{
"encodedHash": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen3_AuthCode_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen3_AuthCode_Valid_Smoke_sid_transactionId$",
"permittedAuthorizeScopes": [{scope: "sunbird_rc_insurance_vc_ldp,openid profile"}]
}'
output: '{
"errors": [
{
"errorCode": "invalid_permitted_scope"
}
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_Missing_Scope_Neg:
ESignet_AuthorizationCode_SunBirdRCNegTC_Missing_Scope_Pos:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC
outputTemplate: esignet/error
outputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTCRCResult
input: '{
"encodedHash": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen4_AuthCode_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen4_AuthCode_Valid_Smoke_sid_transactionId$",
"permittedAuthorizeScopes": [{scope: "$REMOVE$"}]
}'
output: '{
"errors": [
{
"errorCode": "invalid_permitted_scope"
}
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_Empty_Scope_Neg:
Expand Down Expand Up @@ -131,48 +111,38 @@ AuthorizationCodeSunBirdRCNegTC:
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_Invalid_Scope_Neg:
ESignet_AuthorizationCode_SunBirdRCNegTC_Invalid_Scope_Pos:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC
outputTemplate: esignet/error
outputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTCRCResult
input: '{
"encodedHash": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen7_AuthCode_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen7_AuthCode_Valid_Smoke_sid_transactionId$",
"permittedAuthorizeScopes": [{scope: "sgsdfhg"}]
}'
output: '{
"errors": [
{
"errorCode": "invalid_permitted_scope"
}
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_Null_Scope_Neg:
ESignet_AuthorizationCode_SunBirdRCNegTC_Null_Scope_Pos:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC
outputTemplate: esignet/error
outputTemplate: esignet/SunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTC/AuthorizationCodeSunBirdRCNegTCRCResult
input: '{
"encodedHash": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen8_AuthCode_Valid_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:OAuthDetailsRequest_SunBirdRCNegTC_Scen8_AuthCode_Valid_Smoke_sid_transactionId$",
"permittedAuthorizeScopes": [{scope: "null"}]
}'
output: '{
"errors": [
{
"errorCode": "invalid_permitted_scope"
}
]
}'

ESignet_AuthorizationCode_SunBirdRCNegTC_All_Valid_Smoke_sid:
Expand Down

0 comments on commit 95aae6c

Please sign in to comment.