fix: dont init certificates with self-signed by default

This commit is contained in:
2026-05-06 14:17:34 +02:00
parent 2dd48042e7
commit 64f45e9779
4 changed files with 7 additions and 20 deletions
+1 -9
View File
@@ -35,18 +35,10 @@ class TestRegistry(BaseTestCase):
self.patch("shutil.which", count=0),
self.patch("subprocess.check_output", count=0),
):
self.cert_manager.init([])
self.cert_manager.init()
assert self.self_signed_path.is_dir()
assert self.certbot_www.is_dir()
def test_init_with_hosts(self) -> None:
with (
self.patch("shutil.which", count=0),
self.patch("subprocess.check_output", count=0),
):
self._make_self_signed("example.com")
self.cert_manager.init(["example.com"])
def test_exists_self_signed(self) -> None:
self._make_self_signed("example.com")
assert self.cert_manager.exists("example.com")