mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
Test fixes
This commit is contained in:
@@ -97,7 +97,6 @@ class CentOSConfigurator(configurator.ApacheConfigurator):
|
|||||||
if "ifmodule/" in noarg_path or "ifmodule[1]" in noarg_path.lower():
|
if "ifmodule/" in noarg_path or "ifmodule[1]" in noarg_path.lower():
|
||||||
# It's the first or only IfModule in the file
|
# It's the first or only IfModule in the file
|
||||||
return
|
return
|
||||||
return
|
|
||||||
|
|
||||||
if not loadmod_args:
|
if not loadmod_args:
|
||||||
# Do not try to enable mod_ssl
|
# Do not try to enable mod_ssl
|
||||||
|
|||||||
@@ -183,6 +183,17 @@ class CentOS6Tests(util.ApacheTest):
|
|||||||
exclude=False)
|
exclude=False)
|
||||||
self.assertFalse(post_loadmods)
|
self.assertFalse(post_loadmods)
|
||||||
|
|
||||||
|
def test_no_ifmod_search_false(self):
|
||||||
|
self.assertFalse(self.config.parser.not_modssl_ifmodule(
|
||||||
|
"/path/does/not/include/ifmod"
|
||||||
|
))
|
||||||
|
self.assertFalse(self.config.parser.not_modssl_ifmodule(
|
||||||
|
""
|
||||||
|
))
|
||||||
|
self.assertFalse(self.config.parser.not_modssl_ifmodule(
|
||||||
|
"/path/includes/IfModule/but/no/arguments"
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main() # pragma: no cover
|
unittest.main() # pragma: no cover
|
||||||
|
|||||||
Reference in New Issue
Block a user