Adding plugin tests. (#385)

* Adding plugin tests.

* Fixing some python 2/3 incompatibilities.
This commit is contained in:
kevgliss
2016-07-01 11:32:19 -07:00
committed by GitHub
parent a8040777b3
commit 300e2d0b7d
14 changed files with 118 additions and 149 deletions

View File

@@ -111,7 +111,7 @@ def setup_acme_client():
key = current_app.config.get('ACME_PRIVATE_KEY').strip()
acme_email = current_app.config.get('ACME_EMAIL')
acme_tel = current_app.config.get('ACME_TEL')
acme_directory_url = current_app.config('ACME_DIRECTORY_URL'),
acme_directory_url = current_app.config.get('ACME_DIRECTORY_URL'),
contact = ('mailto:{}'.format(acme_email), 'tel:{}'.format(acme_tel))
key = serialization.load_pem_private_key(
@@ -122,7 +122,7 @@ def setup_acme_client():
def acme_client_for_private_key(acme_directory_url, private_key):
return Client(
acme_directory_url, key=acme.jose.JWKRSA(key=private_key)
acme_directory_url, key=jose.JWKRSA(key=private_key)
)

View File

@@ -2,4 +2,3 @@
def test_get_certificates(app):
from lemur.plugins.base import plugins
p = plugins.get('acme-issuer')
p.create_certificate('', {})