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

cargo test --package ssi-vc --all-features is missing some test vectors #521

Closed
vdods opened this issue Jul 28, 2023 · 1 comment
Closed

Comments

@vdods
Copy link
Contributor

vdods commented Jul 28, 2023

The command cargo test --package ssi-vc --all-features produces errors regarding missing test vector files (output truncated for clarity):

error: couldn't read ssi-vc/tests/../../tests/vc-di-eddsa/TestVectors/unsigned.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-eddsa/TestVectors/keyPair.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-eddsa/TestVectors/eddsa-2022/signedDataInt.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-eddsa/TestVectors/jcs-eddsa-2022/signedJCS.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/ecdsa-2019-p256/signedECDSAP256.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/unsigned.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/p256KeyPair.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/jcs-ecdsa-2019-p256/signedJCSECDSAP256.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/ecdsa-2019-p384/signedECDSAP384.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/p384KeyPair.json: No such file or directory (os error 2)
error: couldn't read ssi-vc/tests/../../tests/vc-di-ecdsa/TestVectors/jcs-ecdsa-2019-p384/signedJCSECDSAP384.json: No such file or directory (os error 2)

I think it's just a matter of having forgotten to commit these files.

@sbihel
Copy link
Member

sbihel commented Jul 31, 2023

They are submodules, you need to run git submodule init --update

@sbihel sbihel closed this as completed Jul 31, 2023
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

No branches or pull requests

2 participants