Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INJICERT-317] rename credential.type to MockVerifiableCredential #43

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

vharsh
Copy link
Member

@vharsh vharsh commented Jul 31, 2024

NOTE: The 2nd value of the credential type should have been MockVerifiableCredential to match how it's signed/issued by MOSIP stack.

@vharsh vharsh closed this Aug 1, 2024
@vharsh vharsh reopened this Aug 1, 2024
@vharsh vharsh force-pushed the injicert_cred_type_fix branch 2 times, most recently from e58b860 to b8e1a86 Compare August 1, 2024 06:28
@vharsh vharsh changed the title [INJICERT] rename credential.type to MockVerifiableCredential [INJICERT-317] rename credential.type to MockVerifiableCredential Aug 1, 2024
@vharsh vharsh force-pushed the injicert_cred_type_fix branch from b8e1a86 to 7d94c7f Compare August 1, 2024 06:31
JWTSignatureResponseDto jwtSignatureResponseDto = new JWTSignatureResponseDto();
jwtSignatureResponseDto.setJwtSignedData("test-jwt");
Mockito.when(signatureService.jwtSign(any())).thenReturn(jwtSignatureResponseDto);
VCResult vcResult = mockVCIssuancePlugin.getVerifiableCredentialWithLinkedDataProof(vcRequestDto,"holderId",Map.of("accessTokenHash","ACCESS_TOKEN_HASH","client_id","CLIENT_ID"));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't throw an exception, should I wrap this in a try-catch and assert that no exception is thrown?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jira task to improve test case added , remove throws from test case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vharsh vharsh closed this Aug 1, 2024
@vharsh vharsh reopened this Aug 1, 2024
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
@vharsh vharsh force-pushed the injicert_cred_type_fix branch from 7d94c7f to e4f4e1c Compare August 1, 2024 12:44
@jainhitesh9998 jainhitesh9998 merged commit fa0aee7 into mosip:develop Aug 1, 2024
13 checks passed
@vharsh vharsh deleted the injicert_cred_type_fix branch August 2, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants