Projects
Eulaceura:Mainline
python-oauthlib
_service:obs_scm:openEuler-fix-jwt-upgrade-erro...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:openEuler-fix-jwt-upgrade-error.patch of Package python-oauthlib
From 6b98cc2d69a1ec3bcfc978477dc9861ed3d5037c Mon Sep 17 00:00:00 2001 From: chenhuihan <chenhuihan@huawei.com> Date: Tue, 27 Aug 2024 15:21:51 +0800 Subject: [PATCH] update --- tests/oauth1/rfc5849/test_signatures.py | 35 ------------------------- 1 file changed, 35 deletions(-) diff --git a/tests/oauth1/rfc5849/test_signatures.py b/tests/oauth1/rfc5849/test_signatures.py index 2d4735e..1e90220 100644 --- a/tests/oauth1/rfc5849/test_signatures.py +++ b/tests/oauth1/rfc5849/test_signatures.py @@ -754,41 +754,6 @@ MmgDHR2tt8KeYTSgfU+BAkBcaVF91EQ7VXhvyABNYjeYP7lU7orOgdWMa/zbLXSU bad_signature), self.rsa_public_client.rsa_key)) - def test_rsa_bad_keys(self): - """ - Testing RSA sign and verify with bad key values produces errors. - - This test is useful for coverage tests, since it runs the code branches - that deal with error situations. - """ - - # Signing needs a private key - - for bad_value in [None, '', 'foobar']: - self.assertRaises(ValueError, - sign_rsa_sha1_with_client, - self.eg_signature_base_string, - MockClient(rsa_key=bad_value)) - - self.assertRaises(AttributeError, - sign_rsa_sha1_with_client, - self.eg_signature_base_string, - self.rsa_public_client) # public key doesn't sign - - # Verify needs a public key - - for bad_value in [None, '', 'foobar', self.rsa_private_client.rsa_key]: - self.assertRaises(TypeError, - verify_rsa_sha1, - MockRequest('POST', - 'http://example.com/request', - self.eg_params, - self.expected_signature_rsa_sha1), - MockClient(rsa_key=bad_value)) - - # For completeness, this text could repeat the above for RSA-SHA256 and - # RSA-SHA512 signing and verification functions. - def test_rsa_jwt_algorithm_cache(self): # Tests cache of RSAAlgorithm objects is implemented correctly. -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2