mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
fix stupid broken tests
This commit is contained in:
@@ -162,7 +162,7 @@ class TwoVhost80Test(util.ApacheTest):
|
|||||||
mock_select.return_value = self.vh_truth[0]
|
mock_select.return_value = self.vh_truth[0]
|
||||||
chosen_vhost = self.config.choose_vhost("none.com")
|
chosen_vhost = self.config.choose_vhost("none.com")
|
||||||
self.assertEqual(
|
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
|
# Make sure we go from HTTP -> HTTPS
|
||||||
self.assertFalse(self.vh_truth[0].ssl)
|
self.assertFalse(self.vh_truth[0].ssl)
|
||||||
|
|||||||
@@ -151,7 +151,13 @@ def get_vh_truth(temp_dir, config_name):
|
|||||||
os.path.join(aug_pre, ("default-ssl-port-only.conf/"
|
os.path.join(aug_pre, ("default-ssl-port-only.conf/"
|
||||||
"IfModule/VirtualHost")),
|
"IfModule/VirtualHost")),
|
||||||
set([obj.Addr.fromstring("_default_:443")]), True, False),
|
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 vh_truth
|
||||||
|
|
||||||
return None # pragma: no cover
|
return None # pragma: no cover
|
||||||
|
|||||||
Reference in New Issue
Block a user