Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschladen committed Sep 18, 2024
1 parent 0e06800 commit 4181d26
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions lemur/tests/test_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,8 @@ def test_reissue_command_by_name(
from lemur.tests.factories import CertificateFactory

# TODO do we need this everywhere?
# test-authority would return a mismatching private key, so use 'cryptography-issuer' plugin instead.
# certificate.authority = crypto_authority

certificate = CertificateFactory(name="to_be_reissued_cert")
certificate = CertificateFactory(name="to_be_reissued_cert", authority=crypto_authority)

reissue(certificate.name, None, False, True)

Expand All @@ -1011,9 +1009,9 @@ def test_reissue_command_by_serial_numbers(
from lemur.tests.conf import LEMUR_DEFAULT_ORGANIZATION
from lemur.tests.factories import CertificateFactory

cert1 = CertificateFactory(name="to_be_reissued_cert_1")
cert2 = CertificateFactory(name="to_be_reissued_cert_2")
cert3 = CertificateFactory(name="to_be_reissued_cert_3")
cert1 = CertificateFactory(name="to_be_reissued_cert_1", authority=crypto_authority)
cert2 = CertificateFactory(name="to_be_reissued_cert_2", authority=crypto_authority)
cert3 = CertificateFactory(name="to_be_reissued_cert_3", authority=crypto_authority)

reissue(None, [cert1.serial, cert2.serial, cert3.serial], False, True)

Expand All @@ -1035,10 +1033,10 @@ def test_reissue_command_by_name_and_serial_numbers(
from lemur.tests.conf import LEMUR_DEFAULT_ORGANIZATION
from lemur.tests.factories import CertificateFactory

cert1 = CertificateFactory(name="to_be_reissued_cert_1")
cert2 = CertificateFactory(name="to_be_reissued_cert_2")
cert3 = CertificateFactory(name="to_be_reissued_cert_3")
cert4 = CertificateFactory(name="to_be_reissued_cert_4")
cert1 = CertificateFactory(name="to_be_reissued_cert_1", authority=crypto_authority)
cert2 = CertificateFactory(name="to_be_reissued_cert_2", authority=crypto_authority)
cert3 = CertificateFactory(name="to_be_reissued_cert_3", authority=crypto_authority)
cert4 = CertificateFactory(name="to_be_reissued_cert_4", authority=crypto_authority)

reissue(cert1.name, [cert2.serial, cert3.serial, cert4.serial], False, True)

Expand Down

0 comments on commit 4181d26

Please sign in to comment.