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

fix stupid broken tests

This commit is contained in:
Noah Swartz
2016-01-29 16:44:22 -08:00
parent 7215376ff9
commit 7d63a0c8df
2 changed files with 7 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ class TwoVhost80Test(util.ApacheTest):
mock_select.return_value = self.vh_truth[0]
chosen_vhost = self.config.choose_vhost("none.com")
self.assertEqual(
self.vh_truth[0].get_names(), chosen_vhost.get_names())
self.vh_truth[6].get_names(), chosen_vhost.get_names())
# Make sure we go from HTTP -> HTTPS
self.assertFalse(self.vh_truth[0].ssl)

View File

@@ -151,7 +151,13 @@ def get_vh_truth(temp_dir, config_name):
os.path.join(aug_pre, ("default-ssl-port-only.conf/"
"IfModule/VirtualHost")),
set([obj.Addr.fromstring("_default_:443")]), True, False),
obj.VirtualHost(
os.path.join(prefix, "encryption-example.conf"),
os.path.join(aug_pre, "encryption-example.conf/VirtualHost"),
set([obj.Addr.fromstring("*:80")]),
False, True, "encryption-example.demo")
]
vh_truth[6].aliases.add("none.com")
return vh_truth
return None # pragma: no cover