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 more test cases #151

Closed
2 tasks done
hug-dev opened this issue Apr 20, 2020 · 3 comments
Closed
2 tasks done

Add more test cases #151

hug-dev opened this issue Apr 20, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@hug-dev
Copy link
Member

hug-dev commented Apr 20, 2020

  • Add a test making a request to a provider that is not registered, check for ProviderNotRegistered error code
  • Use a crate that does both hashing and signing/verifying and use it as another client. Both the Parsec client and the Rust one could be used to sign/verify each other computations
@hug-dev hug-dev added the enhancement New feature or request label Apr 20, 2020
@ionut-arm
Copy link
Member

ionut-arm commented Apr 22, 2020

  • Write an "all providers" test where you go through all possible combinations of crypto provider pairs and:
  • create a key in each of the two providers
  • sign a random hash with both keys
  • export the public keys
  • cross-import the public keys
  • cross-verify the signature

@hug-dev hug-dev added this to the Parsec production ready milestone Aug 6, 2020
@ionut-arm ionut-arm self-assigned this Sep 9, 2020
@ionut-arm
Copy link
Member

ionut-arm commented Sep 9, 2020

I'll write down here other ideas I get for tests.

  • Go through all config values and decide which ones would benefit from a test.
  • Move (TPM provider) integration tests to E2E tests
  • Expand stress test to cover new mechanisms (asym encryption) and primitives (elliptic curve algorithms)
  • Test what happens when the authenticator in the request header doesn't exist or isn't registered
  • Add more sanity testing around the software verify/encrypt in PKCS11
  • Expand tests that use is_operation_supported to verify that PsaErrorNotSupported is returned when the opcode isn't listed

@ionut-arm
Copy link
Member

Done in #253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants