Initial work allowing certificates to be revoked. (#941)
* Initial work allowing for certificates to be revoked.
This commit is contained in:
@ -15,7 +15,7 @@ class TestIssuerPlugin(IssuerPlugin):
|
||||
super(TestIssuerPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
def create_certificate(self, csr, issuer_options):
|
||||
return INTERNAL_VALID_LONG_STR, INTERNAL_VALID_SAN_STR
|
||||
return INTERNAL_VALID_LONG_STR, INTERNAL_VALID_SAN_STR, None
|
||||
|
||||
@staticmethod
|
||||
def create_authority(options):
|
||||
|
@ -430,7 +430,7 @@ def test_get_account_number(client):
|
||||
|
||||
def test_mint_certificate(issuer_plugin, authority):
|
||||
from lemur.certificates.service import mint
|
||||
cert_body, private_key, chain = mint(authority=authority, csr=CSR_STR)
|
||||
cert_body, private_key, chain, external_id = mint(authority=authority, csr=CSR_STR)
|
||||
assert cert_body == INTERNAL_VALID_LONG_STR, INTERNAL_VALID_SAN_STR
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user