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

Add various tests checking contracts #440

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented May 25, 2021

As part of #389

The rest of the contracts are mostly already covered.

@hug-dev hug-dev added the stability Issues related to the stability of the service label May 25, 2021
@hug-dev hug-dev force-pushed the add-contract-tests branch 3 times, most recently from 5a45f25 to 96c6f08 Compare May 26, 2021 13:54
@hug-dev hug-dev marked this pull request as ready for review May 26, 2021 13:55
Also adds checks in the providers to prevent generating a public
asymmetric key.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Let's GOOO 🚀


#[cfg(not(any(feature = "pkcs11-provider", feature = "tpm-provider")))]
#[test]
fn import_and_export_ecc_public_key() -> Result<()> {
Copy link
Member

Choose a reason for hiding this comment

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

Feel free to ignore this since it isn't in the remit of this PR, but it would be nicer if these tests panicked instead of returning a Result.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes agree, there are other tests where it's like that. It would be nice to make one PR that changes everything. Added #444 for that.

@hug-dev hug-dev merged commit 11f7c06 into parallaxsecond:main Jun 2, 2021
@hug-dev hug-dev deleted the add-contract-tests branch June 2, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stability Issues related to the stability of the service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants