formatting
This commit is contained in:
parent
5829794d82
commit
cc836433fb
|
@ -501,7 +501,8 @@ class ACMEIssuerPlugin(IssuerPlugin):
|
|||
|
||||
authorizations = self.acme.get_authorizations(acme_client, account_number, domains, dns_provider_plugin,
|
||||
dns_provider_options)
|
||||
self.acme.finalize_authorizations(acme_client, account_number, dns_provider_plugin, authorizations, dns_provider_options)
|
||||
self.acme.finalize_authorizations(acme_client, account_number, dns_provider_plugin, authorizations,
|
||||
dns_provider_options)
|
||||
pem_certificate, pem_certificate_chain = self.acme.request_certificate(acme_client, authorizations, csr)
|
||||
# TODO add external ID (if possible)
|
||||
return pem_certificate, pem_certificate_chain, None
|
||||
|
|
|
@ -1 +1 @@
|
|||
from lemur.tests.conftest import * # noqa
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@ class TestAcme(unittest.TestCase):
|
|||
mock_dns_provider.name = "cloudflare"
|
||||
mock_dns_provider.credentials = "{}"
|
||||
mock_dns_provider.provider_type = "cloudflare"
|
||||
self.acme.dns_providers_for_domain = {"www.test.com": [mock_dns_provider], "test.fakedomain.net": [mock_dns_provider]}
|
||||
self.acme.dns_providers_for_domain = {"www.test.com": [mock_dns_provider],
|
||||
"test.fakedomain.net": [mock_dns_provider]}
|
||||
|
||||
@patch('lemur.plugins.lemur_acme.plugin.len', return_value=1)
|
||||
def test_find_dns_challenge(self, mock_len):
|
||||
|
@ -221,7 +222,8 @@ class TestAcme(unittest.TestCase):
|
|||
@patch('lemur.plugins.lemur_acme.dyn.current_app')
|
||||
@patch('lemur.plugins.lemur_acme.cloudflare.current_app')
|
||||
@patch('lemur.plugins.lemur_acme.plugin.dns_provider_service')
|
||||
def test_get_dns_provider(self, mock_dns_provider_service, mock_current_app_cloudflare, mock_current_app_dyn, mock_current_app):
|
||||
def test_get_dns_provider(self, mock_dns_provider_service, mock_current_app_cloudflare, mock_current_app_dyn,
|
||||
mock_current_app):
|
||||
provider = plugin.ACMEIssuerPlugin()
|
||||
route53 = provider.get_dns_provider("route53")
|
||||
assert route53
|
||||
|
|
Loading…
Reference in New Issue