Skip to content

Commit

Permalink
Update tests to use key_size=1024
Browse files Browse the repository at this point in the history
  • Loading branch information
korbajan committed Aug 12, 2024
1 parent b4b67e6 commit 8d98dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cfy_manager/tests/test_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _mock_small_cert_size():
In tests, we don't need to create large certs. Making the size small
makes these tests faster by an order of magnitude.
"""
with mock.patch('cfy_manager.utils.certificates.CERT_SIZE', 512):
with mock.patch('cfy_manager.utils.certificates.CERT_SIZE', 1024):
yield


Expand Down Expand Up @@ -77,7 +77,7 @@ def ca_cert(tmpdir):

key = rsa.generate_private_key(
public_exponent=65537,
key_size=512, # no need for a big key in tests
key_size=1024, # cryptography 42.0.3/changelog/3.3
)
key_password = 'key_password1'

Expand Down Expand Up @@ -289,7 +289,7 @@ def test_remove_key_encryption(tmpdir, ca_cert):

key = rsa.generate_private_key(
public_exponent=65537,
key_size=512,
key_size=1024,
)
with open(source_key, 'wb') as key_file:
key_pem = key.private_bytes(
Expand Down

0 comments on commit 8d98dab

Please sign in to comment.