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

[RSA] make backend-explicit tests use backend-explicit keys #116

Merged
merged 2 commits into from
Dec 27, 2018

Conversation

mattsb42-aws
Copy link
Contributor

test_pycrypto_RSA_key_instance and test_cryptography_RSA_key_instance both test compatibility of the backend-explicit RSAKey classes with the backend-native RSA key structures. As such, these tests must use the backend-explicit RSAKey classes rather than the default loaded from jose.backends to avoid breaking when multiple backends are present.

NOTE: This fixes the algorithms/test_RSA.py::test_cryptography_RSA_key_instance failure in the compatibility test runs, but the base and cryptography runs still fail and the compatibility run still fails for the reason addressed in #115.

test_pycrypto_RSA_key_instance and test_cryptography_RSA_key_instance both test compatibility of
the backend-explicit RSAKey classes with the backend-native RSA key structures. As such, these
tests must use the backend-explicit RSAKey classes rather than the default loaded from jose.backends
to avoid breaking when multiple backends are present.
@mpdavis
Copy link
Owner

mpdavis commented Dec 27, 2018

LGTM

@mpdavis mpdavis merged commit 2ac41b7 into mpdavis:backend-explicit-tests Dec 27, 2018
@mattsb42-aws mattsb42-aws deleted the compat-rsa branch December 27, 2018 18:41
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