From be916a63af39953a8384fd3387f8dd92984df70b Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 22 Nov 2019 18:30:18 -0800 Subject: [PATCH] nginx http01 test no longer relies on certbot plugins common test --- certbot-nginx/certbot_nginx/tests/http_01_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(