Created
May 5, 2020 17:56
-
-
Save bmw/e4f13e17d1f4647c9d6be730c7ec3512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/certbot-nginx/certbot_nginx/tests/http_01_test.py b/certbot-nginx/certbot_nginx/tests/http_01_test.py | |
index d05370c68..8e0450f6a 100644 | |
--- a/certbot-nginx/certbot_nginx/tests/http_01_test.py | |
+++ b/certbot-nginx/certbot_nginx/tests/http_01_test.py | |
@@ -1,6 +1,7 @@ | |
"""Tests for certbot_nginx.http_01""" | |
import unittest | |
+import josepy as jose | |
import mock | |
import six | |
@@ -8,17 +9,19 @@ from acme import challenges | |
from certbot import achallenges | |
-from certbot.plugins import common_test | |
from certbot.tests import acme_util | |
+from certbot.tests import util as test_util | |
from certbot_nginx.obj import Addr | |
from certbot_nginx.tests import util | |
+AUTH_KEY = jose.JWKRSA.load(test_util.load_vector("rsa512_key.pem")) | |
+ | |
class HttpPerformTest(util.NginxTest): | |
"""Test the NginxHttp01 challenge.""" | |
- account_key = common_test.AUTH_KEY | |
+ account_key = AUTH_KEY | |
achalls = [ | |
achallenges.KeyAuthorizationAnnotatedChallenge( | |
challb=acme_util.chall_to_challb( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment