You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JWT-based CredentialValidator in #1148 needs more tests. Currently the validate method has only been tested with the default options (in identity_storage) and most of the single purpose methods that have been ported from the old validator have not been tested at all.
I would suggest to:
Introduce some more unit tests in the module itself. Note that since it allows users to pass a custom JwsSignatureVerifier signature verification can easily be mocked and it will be easy to test all the other (composed) functionality.
Extensively test signature verification in identity_storage using the JwkStorageDocumentExt trait to produce signatures.
If official test vectors exist for the VC-JWT test suite it would be ideal to port those as well.
Furthermore it would also be good to test JwkStorageDocumentExt::sign_bytes and CoreDocument::verify_jws with more configuration options and make sure that the errors are also exercised in tests.
Motivation
The functionality we ship should be thoroughly tested.
Description
The JWT-based
CredentialValidator
in #1148 needs more tests. Currently thevalidate
method has only been tested with the default options (inidentity_storage
) and most of the single purpose methods that have been ported from the old validator have not been tested at all.I would suggest to:
JwsSignatureVerifier
signature verification can easily be mocked and it will be easy to test all the other (composed) functionality.identity_storage
using theJwkStorageDocumentExt
trait to produce signatures.VC-JWT
test suite it would be ideal to port those as well.Furthermore it would also be good to test
JwkStorageDocumentExt::sign_bytes
andCoreDocument::verify_jws
with more configuration options and make sure that the errors are also exercised in tests.Motivation
The functionality we ship should be thoroughly tested.
Resources
Follow up task of #1148 and sub-task of #1103.
To-do list
Create a task-specific to-do list. Please link PRs that match the TODO list item behind the item after it has been submitted.
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.The text was updated successfully, but these errors were encountered: