1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Make sure the HTTP tests do not use wrong vhosts for asserts

This commit is contained in:
Joona Hoikkala
2018-01-17 20:07:38 +02:00
parent b8f288a372
commit 63136be2e5

View File

@@ -161,7 +161,8 @@ class ApacheHttp01Test(util.ApacheTest):
matches = self.config.parser.find_dir("Include",
self.http.challenge_conf,
vhost.path)
self.assertEqual(len(matches), 1)
if not vhost.ssl:
self.assertEqual(len(matches), 1)
self.assertTrue(os.path.exists(challenge_dir))