From 7191658a6c448cd9ed031f4308a3c4ad8ee1d2ea Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Wed, 25 Sep 2024 19:26:04 +0530 Subject: [PATCH 01/10] INJICERT-213- Negative testcases Signed-off-by: Likhitha R L --- .../resources/config/application.properties | 6 +- .../AuthenticateUserSunBirdCNeg.hbs | 15 + .../AuthenticateUserSunBirdCNeg.yml | 20 + .../AuthenticateUserSunBirdCResultNeg.hbs | 1 + .../AuthorizationCodeSunBirdCNeg.hbs | 19 + .../AuthorizationCodeSunBirdCNeg.yml | 17 + .../AuthorizationCodeSunBirdCResultNeg.hbs | 1 + .../GenerateTokenSunBirdCNeg.hbs | 9 + .../GenerateTokenSunBirdCNeg.yml | 20 + .../GenerateTokenSunBirdCResultNeg.hbs | 3 + .../GetCredentialSunBirdCNeg.hbs | 23 + .../GetCredentialSunBirdCNeg.yml | 392 ++++++++++++++++++ .../GetCredentialSunBirdCResultNeg.hbs | 1 + .../OAuthDetailsRequestSunBirdCNeg.hbs | 17 + .../OAuthDetailsRequestSunBirdCNeg.yml | 26 ++ .../OAuthDetailsRequestSunBirdCResultNeg.hbs | 1 + .../src/main/resources/injicertify/error2.hbs | 3 + apitest/testNgXmlFiles/injicertifyApi.xml | 37 ++ 18 files changed, 608 insertions(+), 3 deletions(-) create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml create mode 100644 apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs create mode 100644 apitest/src/main/resources/injicertify/error2.hbs 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/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs new file mode 100644 index 00000000..0e92bbf3 --- /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..7d00717d --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml @@ -0,0 +1,20 @@ +AuthenticateUserSunBirdC: + InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC + outputTemplate: injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdCResult + 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..6b43a17c --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml @@ -0,0 +1,17 @@ +AuthorizationCodeSunBirdC: + InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC + outputTemplate: injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdCResult + 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..85434cd6 --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml @@ -0,0 +1,20 @@ +GenerateTokenSunBirdC: + InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token + role: resident + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC + outputTemplate: injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdCResult + 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..74e5e528 --- /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..3abd8bbc --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -0,0 +1,392 @@ +GetCredentialSunBirdC: + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_format: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_01 + description: Get sunbird VC when invalid format is given + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_02 + description: Get sunbird VC when format is removed from request body + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_03 + description: Get sunbird VC when format value is given random value + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_04 + description: Get sunbird VC when multiple values given as format + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_05 + description: Get sunbird VC when only one type is given for credential type + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_06 + description: Get sunbird VC when only one type is given for credential type + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_07 + description: Get sunbird VC when random value is given for credential type + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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_without_proof: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_08 + description: Get sunbird VC without proof in request body + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_09 + description: Get sunbird VC when only proof type is given in request body + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_10 + description: Get sunbird VC when proof type value is empty + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_11 + description: Get sunbird VC when proof type value is with only spaces + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_12 + description: Get sunbird VC when invalid proof jwt value is given + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_13 + description: Get sunbird VC when format value is given empty + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_14 + description: Get sunbird VC when only proofjwt value is given in request + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_15 + description: Get sunbird VC when only spaces given for proofjwt value + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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": " " +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_jwtvalue: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_16 + description: Get sunbird VC when invalid value is given for jwt + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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_cwt" +}' + output: '{ + "error": "invalid_proof" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_prooftype: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_18 + description: Get sunbird VC when invalid prooftype value is given + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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": "jwt123", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_unsupported_prooftype: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_17 + description: Get sunbird VC when unsupported prooftype value is given + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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": "cwt", + "proof_cwt": "$PROOF_CWT_2$" +}' + output: '{ + "error": "unsupported_proof_type" +}' \ 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..d44fcc8d --- /dev/null +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml @@ -0,0 +1,26 @@ +OAuthDetailsRequestSunBirdC: + InjiCertify_ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid: + endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC + outputTemplate: injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdCResult + 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 new file mode 100644 index 00000000..76b865e9 --- /dev/null +++ b/apitest/src/main/resources/injicertify/error2.hbs @@ -0,0 +1,3 @@ +{ + "error": "{{error}}" +} \ No newline at end of file diff --git a/apitest/testNgXmlFiles/injicertifyApi.xml b/apitest/testNgXmlFiles/injicertifyApi.xml index 3e68b934..23afe141 100644 --- a/apitest/testNgXmlFiles/injicertifyApi.xml +++ b/apitest/testNgXmlFiles/injicertifyApi.xml @@ -68,6 +68,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e6a5daff7d3c2be3a256bb609cea296e04ca046f Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Fri, 27 Sep 2024 18:20:45 +0530 Subject: [PATCH 02/10] INJICERT-213- Negative testcases Signed-off-by: Likhitha R L --- .../GetCredentialSunBirdCNeg.yml | 404 +++++++++++++++++- 1 file changed, 399 insertions(+), 5 deletions(-) diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml index 3abd8bbc..49fb5b5a 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -152,7 +152,7 @@ GetCredentialSunBirdC: output: '{ "error": "unsupported_credential_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_without_proof: + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_empty_proof: endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential uniqueIdentifier: TC_injicertify_credentialissuance_08 description: Get sunbird VC without proof in request body @@ -315,7 +315,7 @@ GetCredentialSunBirdC: input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", - "format": "abcdef", + "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], "proof_type": "jwt", @@ -337,7 +337,7 @@ GetCredentialSunBirdC: input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", - "format": "abcdef", + "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], "proof_type": "jwt", @@ -359,7 +359,7 @@ GetCredentialSunBirdC: input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", - "format": "abcdef", + "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], "proof_type": "jwt123", @@ -381,7 +381,7 @@ GetCredentialSunBirdC: input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", - "format": "abcdef", + "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], "proof_type": "cwt", @@ -389,4 +389,398 @@ GetCredentialSunBirdC: }' 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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": "", + "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 + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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"}], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ + "error": "unknown_error" +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Credentialtype_Emptyarray: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_36 + description: Get sunbird VC when empty array is given as context value + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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": [], + "proof_type": "jwt", + "proof_jwt": "$PROOF_JWT_2$" +}' + output: '{ }' \ No newline at end of file From 0d4747ae0c45484a58d91233589c999fb843d059 Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Fri, 4 Oct 2024 10:29:24 +0530 Subject: [PATCH 03/10] INJICERT-213-Negative testcases Signed-off-by: Likhitha R L --- .../SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml | 2 ++ 1 file changed, 2 insertions(+) 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 From 6d1ee86b55450d44ad6f8a23c7c97dd045a25aea Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Mon, 14 Oct 2024 14:09:32 +0530 Subject: [PATCH 04/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../GetCredentialSunBirdCForVd11.yml | 2 ++ .../GetCredentialSunBirdCForVd12.yml | 2 ++ .../GetCredentialSunBirdCNeg.yml | 30 ++++++++++++++++--- 3 files changed, 30 insertions(+), 4 deletions(-) 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/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml index 49fb5b5a..3355cff1 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -734,7 +734,7 @@ GetCredentialSunBirdC: "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"}], + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": "", "proof_type": "jwt", "proof_jwt": "$PROOF_JWT_2$" @@ -756,14 +756,14 @@ GetCredentialSunBirdC: "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"}], + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "proof_type": "jwt", "proof_jwt": "$PROOF_JWT_2$" }' output: '{ "error": "unknown_error" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_Credentialtype_Emptyarray: + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_context_Emptyarray: endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential uniqueIdentifier: TC_injicertify_credentialissuance_36 description: Get sunbird VC when empty array is given as context value @@ -777,10 +777,32 @@ GetCredentialSunBirdC: "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"}], + "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [], "proof_type": "jwt", "proof_jwt": "$PROOF_JWT_2$" }' output: '{ +}' + InjiCertify_GetCredentialSunBirdC_IdpAccessToken_context_invalid: + endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential + uniqueIdentifier: TC_injicertify_credentialissuance_37 + description: Get sunbird VC when invalid value is given as context value + role: resident + checkErrorsOnlyInResponse: true + restMethod: post + validityCheckRequired: true + inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + 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 From 8750f634fae70ca16579e6b9bf924459ca904606 Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Fri, 18 Oct 2024 14:22:04 +0530 Subject: [PATCH 05/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml | 2 ++ .../AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml | 2 ++ .../CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml | 2 ++ .../SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml | 2 ++ .../OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml | 2 ++ .../AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml | 2 ++ .../AuthorizationCodeSunBirdCNeg.yml | 2 ++ .../GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml | 2 ++ .../OAuthDetailsRequestSunBirdCNeg.yml | 2 ++ 9 files changed, 18 insertions(+) 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/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/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml index 7d00717d..801eb358 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml @@ -1,6 +1,8 @@ AuthenticateUserSunBirdC: InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate + uniqueIdentifier: TC_esignetDependent_AuthenticateUserNeg + description: Authenticate User role: resident restMethod: post checkErrorsOnlyInResponse: true diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml index 6b43a17c..ac70500d 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml @@ -1,6 +1,8 @@ AuthorizationCodeSunBirdC: InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code + uniqueIdentifier: TC_esignetDependent_AuthorizationCodeNeg + description: Authorization Code role: resident restMethod: post checkErrorsOnlyInResponse: true diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml index 85434cd6..08476fec 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml @@ -1,6 +1,8 @@ GenerateTokenSunBirdC: InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token + uniqueIdentifier: TC_esignetDependent_GenerateTokenNeg + description: Generate Token role: resident restMethod: post validityCheckRequired: true diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml index d44fcc8d..cb320e54 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.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_OAuthdetailsRequestNeg + description: OAuth details request role: resident restMethod: post checkErrorsOnlyInResponse: true From bd0317e52318de1eb55b94a6bd93bceb3fd021f4 Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Sat, 19 Oct 2024 14:20:46 +0530 Subject: [PATCH 06/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../AuthenticateUserSunBirdCNeg.yml | 6 +- .../AuthorizationCodeSunBirdCNeg.yml | 6 +- .../GenerateTokenSunBirdCNeg.yml | 6 +- .../GetCredentialSunBirdCNeg.yml | 76 +++++++++---------- .../OAuthDetailsRequestSunBirdCNeg.yml | 6 +- 5 files changed, 50 insertions(+), 50 deletions(-) diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml index 801eb358..bf4d8920 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml @@ -1,4 +1,4 @@ -AuthenticateUserSunBirdC: +AuthenticateUserSunBirdCNeg: InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate uniqueIdentifier: TC_esignetDependent_AuthenticateUserNeg @@ -7,8 +7,8 @@ AuthenticateUserSunBirdC: restMethod: post checkErrorsOnlyInResponse: true validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC - outputTemplate: injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdCResult + inputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg input: '{ "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml index ac70500d..448ecacd 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml @@ -1,4 +1,4 @@ -AuthorizationCodeSunBirdC: +AuthorizationCodeSunBirdCNeg: InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code uniqueIdentifier: TC_esignetDependent_AuthorizationCodeNeg @@ -7,8 +7,8 @@ AuthorizationCodeSunBirdC: restMethod: post checkErrorsOnlyInResponse: true validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC - outputTemplate: injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdCResult + inputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg input: '{ "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml index 08476fec..1e111fce 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml @@ -1,4 +1,4 @@ -GenerateTokenSunBirdC: +GenerateTokenSunBirdCNeg: InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token uniqueIdentifier: TC_esignetDependent_GenerateTokenNeg @@ -6,8 +6,8 @@ GenerateTokenSunBirdC: role: resident restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC - outputTemplate: injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdCResult + 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$", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml index 3355cff1..5c6a6019 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -1,4 +1,4 @@ -GetCredentialSunBirdC: +GetCredentialSunBirdCNeg: InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_format: endPoint: $INJICERTIFYINSURANCEBASEURL$/v1/certify/issuance/credential uniqueIdentifier: TC_injicertify_credentialissuance_01 @@ -7,7 +7,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -29,7 +29,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -50,7 +50,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -72,7 +72,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -94,7 +94,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -116,7 +116,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -138,7 +138,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -160,7 +160,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -180,7 +180,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -201,7 +201,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -223,7 +223,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -245,7 +245,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -267,7 +267,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -289,7 +289,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -310,7 +310,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -332,7 +332,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -354,7 +354,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -376,7 +376,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -398,7 +398,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -420,7 +420,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -442,7 +442,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -464,7 +464,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -486,7 +486,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -508,7 +508,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -530,7 +530,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -552,7 +552,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -574,7 +574,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -596,7 +596,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -618,7 +618,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -640,7 +640,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -662,7 +662,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -684,7 +684,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -706,7 +706,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -728,7 +728,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -750,7 +750,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -771,7 +771,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", @@ -792,7 +792,7 @@ GetCredentialSunBirdC: checkErrorsOnlyInResponse: true restMethod: post validityCheckRequired: true - inputTemplate: injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC + inputTemplate: injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml index cb320e54..3fbfbc4e 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml @@ -1,4 +1,4 @@ -OAuthDetailsRequestSunBirdC: +OAuthDetailsRequestSunBirdCNeg: InjiCertify_ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/v2/oauth-details uniqueIdentifier: TC_esignetDependent_OAuthdetailsRequestNeg @@ -6,8 +6,8 @@ OAuthDetailsRequestSunBirdC: role: resident restMethod: post checkErrorsOnlyInResponse: true - inputTemplate: injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC - outputTemplate: injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdCResult + inputTemplate: injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg + outputTemplate: injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg input: '{ "requestTime": "$TIMESTAMP$", "clientId": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", From d4969a92b36bb61151cced1af3591ce7da78117c Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Mon, 21 Oct 2024 16:01:51 +0530 Subject: [PATCH 07/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs | 2 +- .../OAuthDetailsRequestSunBirdCNeg.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs index 74e5e528..aaeba599 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs @@ -2,7 +2,7 @@ "client_id": "{{client_id}}", "idpAccessToken": "{{idpAccessToken}}", "format": "{{format}}", - "credential_definition" : { + "credential_definition" : { "type": [ {{#each type}} "{{types}}" diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml index 3fbfbc4e..a31e4bb9 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml @@ -1,8 +1,8 @@ OAuthDetailsRequestSunBirdCNeg: InjiCertify_ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/v2/oauth-details - uniqueIdentifier: TC_esignetDependent_OAuthdetailsRequestNeg - description: OAuth details request + uniqueIdentifier: TC_esignetDependent_OAuthdetailsRequestNeg + description: OAuth details request role: resident restMethod: post checkErrorsOnlyInResponse: true From d64fa0e15a3d12d8494aa700f42e72a30f8230a4 Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Wed, 23 Oct 2024 11:32:26 +0530 Subject: [PATCH 08/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../AuthenticateUserSunBirdCNeg.hbs | 2 +- .../GetCredentialSunBirdCNeg.hbs | 4 +- .../GetCredentialSunBirdCNeg.yml | 40 +++++++++---------- .../OAuthDetailsRequestSunBirdCNeg.yml | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs index 0e92bbf3..d58a6555 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs @@ -1,5 +1,5 @@ { - "encodedHash": "{{encodedHash}}", + "encodedHash": "{{encodedHash}}", "requestTime": "{{requestTime}}", "request": { "transactionId": "{{transactionId}}", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs index aaeba599..f4d5fdf7 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs @@ -1,6 +1,6 @@ { - "client_id": "{{client_id}}", - "idpAccessToken": "{{idpAccessToken}}", + "client_id": "{{client_id}}", + "idpAccessToken": "{{idpAccessToken}}", "format": "{{format}}", "credential_definition" : { "type": [ diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml index 5c6a6019..db8b520f 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -1,5 +1,5 @@ GetCredentialSunBirdCNeg: - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_format: + 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 @@ -21,7 +21,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_credential_format" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_without_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 @@ -42,7 +42,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "invalid_vc_format" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_unsupported_format_value: + 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 @@ -64,7 +64,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "not_implemented" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_multiple_format_value: + 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 @@ -86,7 +86,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_credential_format" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_onlyone_credentialtype_1: + 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 @@ -108,7 +108,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_credential_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_onlyone_credentialtype_2: + 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 @@ -130,7 +130,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_credential_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_random_credentialtype: + 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 @@ -152,7 +152,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_credential_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_empty_proof: + 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 @@ -172,7 +172,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_proof_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_only_prooftype: + 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 @@ -193,7 +193,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "invalid_proof" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_emptyvalue_prooftype: + 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 @@ -215,7 +215,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_proof_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_onlySpaces_prooftype: + 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 @@ -237,7 +237,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_proof_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_proofjwtvalue: + 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 @@ -259,7 +259,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "invalid_proof" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_emptyvalue_format: + 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 @@ -281,7 +281,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "invalid_vc_format" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_only_proofjwtvalue: + 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 @@ -302,7 +302,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_proof_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_spaces_proofjwtvalue: + 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 @@ -324,7 +324,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "invalid_proof" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_jwtvalue: + 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 @@ -346,7 +346,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "invalid_proof" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_invalid_prooftype: + 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 @@ -368,7 +368,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unsupported_proof_type" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_unsupported_prooftype: + 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 @@ -763,7 +763,7 @@ GetCredentialSunBirdCNeg: output: '{ "error": "unknown_error" }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_context_Emptyarray: + 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 @@ -784,7 +784,7 @@ GetCredentialSunBirdCNeg: }' output: '{ }' - InjiCertify_GetCredentialSunBirdC_IdpAccessToken_context_invalid: + 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 diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml index a31e4bb9..7f2f97e0 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml @@ -21,7 +21,7 @@ OAuthDetailsRequestSunBirdCNeg: "state": "eree2311", "claimsLocales": "en", "codeChallenge": "$CODECHALLENGE$", - "codeChallengeMethod": "S256" + "codeChallengeMethod": "S256" }' output: '{ From f74bea3643bfb87ac71dbb611705dbfd634d0450 Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Wed, 23 Oct 2024 11:39:04 +0530 Subject: [PATCH 09/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml | 2 +- .../AuthorizationCodeSunBirdCNeg.yml | 2 +- .../GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml | 2 +- .../OAuthDetailsRequestSunBirdCNeg.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml index bf4d8920..d1c2d476 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml @@ -1,5 +1,5 @@ AuthenticateUserSunBirdCNeg: - InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke: + InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke_Neg: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate uniqueIdentifier: TC_esignetDependent_AuthenticateUserNeg description: Authenticate User diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml index 448ecacd..094dade4 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml @@ -1,5 +1,5 @@ AuthorizationCodeSunBirdCNeg: - InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid: + InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_Neg: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code uniqueIdentifier: TC_esignetDependent_AuthorizationCodeNeg description: Authorization Code diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml index 1e111fce..bdee6961 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml @@ -1,5 +1,5 @@ GenerateTokenSunBirdCNeg: - InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid: + InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg: endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token uniqueIdentifier: TC_esignetDependent_GenerateTokenNeg description: Generate Token diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml index 7f2f97e0..0eee7ee6 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml @@ -1,5 +1,5 @@ OAuthDetailsRequestSunBirdCNeg: - InjiCertify_ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid: + 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 From e27f09a4b9f0b1d3ffbb989e8df7cfc32c049591 Mon Sep 17 00:00:00 2001 From: Likhitha R L Date: Wed, 23 Oct 2024 11:49:10 +0530 Subject: [PATCH 10/10] INJICERT-213 Signed-off-by: Likhitha R L --- .../GetCredentialSunBirdCNeg.yml | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml index db8b520f..f302b5d8 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml +++ b/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -2,7 +2,7 @@ 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 + 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 @@ -24,7 +24,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -45,7 +45,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -67,7 +67,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -89,7 +89,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -111,7 +111,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -133,7 +133,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -155,7 +155,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -175,7 +175,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -196,7 +196,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -218,7 +218,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -239,8 +239,8 @@ GetCredentialSunBirdCNeg: }' 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 + 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 @@ -262,7 +262,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -284,7 +284,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -305,7 +305,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -327,7 +327,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -349,7 +349,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -371,7 +371,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -393,7 +393,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -415,7 +415,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -437,7 +437,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -459,7 +459,7 @@ GetCredentialSunBirdCNeg: 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 + description: Get sunbird VC when Missing type attribute and expected VC download should get failed with proper error role: resident checkErrorsOnlyInResponse: true restMethod: post @@ -481,7 +481,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -503,7 +503,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -525,7 +525,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -547,7 +547,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -569,7 +569,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -591,7 +591,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -613,7 +613,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -635,7 +635,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -657,7 +657,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -679,7 +679,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -701,7 +701,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -723,7 +723,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -745,7 +745,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -766,7 +766,7 @@ GetCredentialSunBirdCNeg: 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 + 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 @@ -787,7 +787,7 @@ GetCredentialSunBirdCNeg: 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 + 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