diff --git a/apitest/src/main/resources/config/application.properties b/apitest/src/main/resources/config/application.properties index 8742a195..0714a0e5 100644 --- a/apitest/src/main/resources/config/application.properties +++ b/apitest/src/main/resources/config/application.properties @@ -100,7 +100,7 @@ passwordToReset=12341234_AaB XSRFTOKEN=7d01b2a8-b89d-41ad-9361-d7f6294021d1 codeChallenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM codeVerifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk -policyNumberForSunBirdRC=1234-56789-1011 +policyNumberForSunBirdRC=948108765 challengeValueForSunBirdRC=eyJmdWxsTmFtZSI6IlNhbmNoaSBTaW5naCIsImRvYiI6IjE5OTgtMDEtMjQifQ== -fullNameForSunBirdRC=Sanchi Singh -dobForSunBirdRC=1998-01-24 \ No newline at end of file +fullNameForSunBirdRC=Baldev +dobForSunBirdRC=1988-12-21 \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml b/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml index 7d00717d..8a57176f 100644 --- a/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml +++ b/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml @@ -1,6 +1,8 @@ AuthenticateUserSunBirdC: InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate + uniqueIdentifier: TC_esignetDependent_AuthenticateUser + description: Authenticate User role: resident restMethod: post checkErrorsOnlyInResponse: true diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml b/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml index 6b43a17c..73d4dbdc 100644 --- a/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml +++ b/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml @@ -1,6 +1,8 @@ AuthorizationCodeSunBirdC: InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code + uniqueIdentifier: TC_esignetDependent_AuthorizationCode + description: Authorization Code role: resident restMethod: post checkErrorsOnlyInResponse: true diff --git a/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml b/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml index 625bba5a..493dfa7d 100644 --- a/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml +++ b/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml @@ -1,6 +1,8 @@ CreateOIDCClientV2SunBirdC: InjiCertify_ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/client-mgmt/oauth-client + uniqueIdentifier: TC_esignetDependent_CreateOidc + description: Create OIDC client role: partner restMethod: post inputTemplate: injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml b/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml index 85434cd6..bcc5a78e 100644 --- a/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml +++ b/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml @@ -1,6 +1,8 @@ GenerateTokenSunBirdC: InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token + uniqueIdentifier: TC_esignetDependent_GenerateToken + description: Generate Token role: resident restMethod: post validityCheckRequired: true diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml b/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml index f2a2d694..7a82eb06 100644 --- a/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml +++ b/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml @@ -1,6 +1,8 @@ GetCredentialSunBirdC: InjiCertify_GetCredentialSunBirdC_IdpAccessToken_all_Valid_Smoke: endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance + description: Get sunbird VC with valid details role: resident checkErrorsOnlyInResponse: true restMethod: post diff --git a/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml b/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml index d44fcc8d..2315715f 100644 --- a/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml +++ b/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml @@ -1,6 +1,8 @@ OAuthDetailsRequestSunBirdC: InjiCertify_ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/v2/oauth-details + uniqueIdentifier: TC_esignetDependent_OAuthdetailsRequest + description: OAuth details request role: resident restMethod: post checkErrorsOnlyInResponse: true diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml b/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml index 283e9403..76d033f1 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml @@ -1,6 +1,8 @@ GetCredentialSunBirdCForVd11: InjiCertify_GetCredentialSunBirdCForVd11_IdpAccessToken_all_Valid_Smoke: endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/vd11/credential + uniqueIdentifier: TC_injicertify_credentialissuance_Vd11 + description: Get sunbird VC with valid details role: resident checkErrorsOnlyInResponse: true restMethod: post diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml b/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml index a7d1ac2e..f057077d 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml @@ -1,6 +1,8 @@ GetCredentialSunBirdCForVd12: InjiCertify_GetCredentialSunBirdCForVd12_IdpAccessToken_all_Valid_Smoke: endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/vd12/credential + uniqueIdentifier: TC_injicertify_credentialissuance_Vd12 + description: Get sunbird VC with valid details role: resident checkErrorsOnlyInResponse: true restMethod: post diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs new file mode 100644 index 00000000..d58a6555 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs @@ -0,0 +1,15 @@ +{ + "encodedHash": "{{encodedHash}}", + "requestTime": "{{requestTime}}", + "request": { + "transactionId": "{{transactionId}}", + "individualId": "{{individualId}}", + "challengeList" : [ + { + "authFactorType" : "{{authFactorType}}", + "challenge" : "{{challenge}}", + "format": "{{format}}" + } + ] + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml new file mode 100644 index 00000000..d1c2d476 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml @@ -0,0 +1,22 @@ +AuthenticateUserSunBirdCNeg: + InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke_Neg: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate + uniqueIdentifier: TC_esignetDependent_AuthenticateUserNeg + description: Authenticate User + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg + input: '{ + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_transactionId$", + "individualId": "$POLICYNUMBERFORSUNBIRDRC$", + "authFactorType" : "KBA", + "challenge" : "$CHALLENGEVALUEFORSUNBIRDC$", + "format": "base64url-encoded-json" + }' + output: '{ +}' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs new file mode 100644 index 00000000..491dca1b --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs @@ -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}} + ] + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml new file mode 100644 index 00000000..094dade4 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml @@ -0,0 +1,19 @@ +AuthorizationCodeSunBirdCNeg: + InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_Neg: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code + uniqueIdentifier: TC_esignetDependent_AuthorizationCodeNeg + description: Authorization Code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg + input: '{ + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_transactionId$", + "permittedAuthorizeScopes": [{scope: "sunbird_rc_insurance_vc_ldp"}] +}' + output: '{ +}' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs new file mode 100644 index 00000000..c425e676 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs @@ -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}}" +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml new file mode 100644 index 00000000..bdee6961 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml @@ -0,0 +1,22 @@ +GenerateTokenSunBirdCNeg: + InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token + uniqueIdentifier: TC_esignetDependent_GenerateTokenNeg + description: Generate Token + role: resident + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg + input: '{ + "grant_type": "authorization_code", + "code": "$ID:ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_code$", + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", + "client_assertion": "$CLIENT_ASSERTION_USER4_JWK$", + "redirect_uri": "$IDPREDIRECTURI$", + "code_verifier": "$CODEVERIFIER$" +}' + output: '{ + "token_type": "Bearer" +}' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs new file mode 100644 index 00000000..c323e20a --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs @@ -0,0 +1,3 @@ +{ + "token_type": "{{token_type}}" +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs new file mode 100644 index 00000000..f4d5fdf7 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs @@ -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}}" + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml new file mode 100644 index 00000000..f302b5d8 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -0,0 +1,808 @@ +GetCredentialSunBirdCNeg: + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_format_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_01 + description: Get sunbird VC when invalid format is given and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "abcdef", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_credential_format" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_without_format_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_02 + description: Get sunbird VC when format is removed from request body and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_vc_format" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_unsupported_format_value_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_03 + description: Get sunbird VC when format value is given random value and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "jwt_vc_json", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "not_implemented" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_multiple_format_value_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_04 + description: Get sunbird VC when multiple values given as format and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc, jwt_vc_json-ld", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_credential_format" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_onlyone_credentialtype_1_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_05 + description: Get sunbird VC when only one type is given for credential type and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_credential_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_onlyone_credentialtype_2_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_06 + description: Get sunbird VC when only one type is given for credential type and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_credential_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_random_credentialtype_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_07 + description: Get sunbird VC when random value is given for credential type and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "abcdefghij"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_credential_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_empty_proof_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_08 + description: Get sunbird VC without proof in request body and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}] +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_only_prooftype_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_09 + description: Get sunbird VC when only proof type is given in request body and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_emptyvalue_prooftype_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_10 + description: Get sunbird VC when proof type value is empty and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_onlySpaces_prooftype_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_11 + description: Get sunbird VC when proof type value is with only spaces and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": " ", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_proofjwtvalue_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_12 + description: Get sunbird VC when invalid proof jwt value is given and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "jwt": "" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_emptyvalue_format_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_13 + description: Get sunbird VC when format value is given empty and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_vc_format" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_only_proofjwtvalue_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_14 + description: Get sunbird VC when only proofjwt value is given in request and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_spaces_proofjwtvalue_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_15 + description: Get sunbird VC when only spaces given for proofjwt value and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": " " +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_jwtvalue_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_16 + description: Get sunbird VC when invalid value is given for jwt and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "PROOF_cwt" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_prooftype_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_18 + description: Get sunbird VC when invalid prooftype value is given and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt123", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_unsupported_prooftype_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_17 + description: Get sunbird VC when unsupported prooftype value is given and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "cwt", + "proof_cwt": "$PROOF_CWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_C_nonce_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_19 + description: Get sunbird VC when invalid c_nonce is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_type_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_20 + description: Get sunbird VC when invalid type is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Empty_type_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_21 + description: Get sunbird VC when empty type is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Missing_type_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_22 + description: Get sunbird VC when Missing type attribute and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Invalid_JWKHeader_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_23 + description: Get sunbird VC when invalid JWK header is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Missing_JWKHeader_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_24 + description: Get sunbird VC when JWK header is missing and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Empty_C_nonce_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_25 + description: Get sunbird VC when c_nonce value is given empty and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Empty_aud_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_26 + description: Get sunbird VC when aud value is given empty and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Exp_C_nonce_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_27 + description: Get sunbird VC when aud value is given empty and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "vci_exchange_failed" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Invalid_ProofJWTHeader_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_28 + description: Get sunbird VC when invalid Proof JWT header is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_empty_ProofJWTHeader_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_29 + description: Get sunbird VC when empty Proof JWT header is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Missing_ProofJWTHeader_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_30 + description: Get sunbird VC when Proof JWT header is missing and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Invalid_aud_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_31 + description: Get sunbird VC when invalid aud value is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Invalid_iss_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_32 + description: Get sunbird VC when invalid iss value is passed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Credentialtype_random_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_33 + description: Get sunbird VC when random value added along with exiting credential types and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"},{types: "abcdef"}], + "@context": [{context: "$VCICONTEXTURL$"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "vci_exchange_failed" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Context_empty_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_34 + description: Get sunbird VC when context value is given empty and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": "", + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "invalid request" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Context_missing_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_35 + description: Get sunbird VC when context field is removed and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unknown_error" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_context_Emptyarray_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_36 + description: Get sunbird VC when empty array is given as context value and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": [], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_context_invalid_Neg: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_37 + description: Get sunbird VC when invalid value is given as context value and expected VC download should get failed with proper error + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg + outputTemplate: injicertify/error2 + input: '{ + "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "format": "ldp_vc", + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], + "@context": ["abcdefghgf"], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "vci_exchange_failed" +}' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs new file mode 100644 index 00000000..6dec068b --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs @@ -0,0 +1,17 @@ +{ + "requestTime": "{{requestTime}}", + "request": { + "clientId": "{{clientId}}", + "scope": "{{scope}}", + "responseType": "{{responseType}}", + "redirectUri": "{{redirectUri}}", + "display": "{{display}}", + "prompt": "{{prompt}}", + "acrValues": "{{acrValues}}", + "nonce" : "{{nonce}}", + "state" : "{{state}}", + "claimsLocales" : "{{claimsLocales}}", + "codeChallenge" : "{{codeChallenge}}", + "codeChallengeMethod" : "{{codeChallengeMethod}}" + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml new file mode 100644 index 00000000..0eee7ee6 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml @@ -0,0 +1,28 @@ +OAuthDetailsRequestSunBirdCNeg: + InjiCertify_ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_Neg: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/v2/oauth-details + uniqueIdentifier: TC_esignetDependent_OAuthdetailsRequestNeg + description: OAuth details request + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", + "scope": "sunbird_rc_insurance_vc_ldp", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:knowledge", + "nonce": "973eieljzng", + "state": "eree2311", + "claimsLocales": "en", + "codeChallenge": "$CODECHALLENGE$", + "codeChallengeMethod": "S256" +}' + output: '{ + +}' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/error2.hbs b/apitest/src/main/resources/injicertify/error2.hbs index cfaf9654..76b865e9 100644 --- a/apitest/src/main/resources/injicertify/error2.hbs +++ b/apitest/src/main/resources/injicertify/error2.hbs @@ -1,3 +1,3 @@ -{ - "error": "{{error}}" +{ + "error": "{{error}}" } \ No newline at end of file diff --git a/apitest/testNgXmlFiles/injicertifySuite.xml b/apitest/testNgXmlFiles/injicertifySuite.xml index e7db26b7..1375509f 100644 --- a/apitest/testNgXmlFiles/injicertifySuite.xml +++ b/apitest/testNgXmlFiles/injicertifySuite.xml @@ -53,6 +53,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +