mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
get_cert_file -> get_cert_path.
This commit is contained in:
@@ -145,7 +145,7 @@ class Dvsni(object):
|
||||
if idx is not None:
|
||||
self.indices.append(idx)
|
||||
|
||||
def get_cert_file(self, achall):
|
||||
def get_cert_path(self, achall):
|
||||
"""Returns standardized name for challenge certificate.
|
||||
|
||||
:param achall: Annotated DVSNI challenge.
|
||||
@@ -166,7 +166,7 @@ class Dvsni(object):
|
||||
def _setup_challenge_cert(self, achall, s=None):
|
||||
# pylint: disable=invalid-name
|
||||
"""Generate and write out challenge certificate."""
|
||||
cert_path = self.get_cert_file(achall)
|
||||
cert_path = self.get_cert_path(achall)
|
||||
# Register the path before you write out the file
|
||||
self.configurator.reverter.register_file_creation(True, cert_path)
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ class DvsniTest(unittest.TestCase):
|
||||
|
||||
self.assertTrue(m_open.called)
|
||||
self.assertEqual(
|
||||
m_open.call_args[0], (self.sni.get_cert_file(achall), "w"))
|
||||
m_open.call_args[0], (self.sni.get_cert_path(achall), "w"))
|
||||
self.assertEqual(m_open().write.mock_calls[0][1][0], "pem")
|
||||
self.assertEqual(m_open().write.mock_calls[1][1][0],
|
||||
achall.key.key.private_bytes())
|
||||
|
||||
Reference in New Issue
Block a user