Temporarily modify dns_common so certbot-dns-digitalocean relies on the latest version, for testing

This commit is contained in:
Erica Portnoy 2020-06-29 14:49:17 -07:00
parent baac780a57
commit 59ffd40879
5 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(dns_common.DNSAuthenticator):
class Authenticator(dns_common.DNSAuthenticator2):
"""DNS Authenticator for DigitalOcean
This Authenticator uses the DigitalOcean API to fulfill a dns-01 challenge.

View file

@ -1,3 +1,3 @@
# Remember to update setup.py to match the package versions below.
acme[dev]==0.29.0
certbot[dev]==1.1.0
-e certbot[dev]

View file

@ -20,7 +20,7 @@ install_requires = [
if not os.environ.get('EXCLUDE_CERTBOT_DEPS'):
install_requires.extend([
'acme>=0.29.0',
'certbot>=1.1.0',
'certbot>=1.6.0.dev0',
])
elif 'bdist_wheel' in sys.argv[1:]:
raise RuntimeError('Unset EXCLUDE_CERTBOT_DEPS when building wheels '

View file

@ -21,11 +21,11 @@ logger = logging.getLogger(__name__)
@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class DNSAuthenticator(common.Plugin):
class DNSAuthenticator2(common.Plugin):
"""Base class for DNS Authenticators"""
def __init__(self, config, name):
super(DNSAuthenticator, self).__init__(config, name)
super(DNSAuthenticator2, self).__init__(config, name)
self._attempt_cleanup = False

View file

@ -21,7 +21,7 @@ from certbot.tests import util as test_util
class DNSAuthenticatorTest(test_util.TempDirTestCase, dns_test_common.BaseAuthenticatorTest):
# pylint: disable=protected-access
class _FakeDNSAuthenticator(dns_common.DNSAuthenticator):
class _FakeDNSAuthenticator(dns_common.DNSAuthenticator2):
_setup_credentials = mock.MagicMock()
_perform = mock.MagicMock()
_cleanup = mock.MagicMock()