mirror of
https://github.com/certbot/certbot.git
synced 2026-06-14 19:20:09 -04:00
Test fixes
This commit is contained in:
parent
836a1b537b
commit
51343c8e4c
2 changed files with 11 additions and 1 deletions
|
|
@ -97,7 +97,6 @@ class CentOSConfigurator(configurator.ApacheConfigurator):
|
|||
if "ifmodule/" in noarg_path or "ifmodule[1]" in noarg_path.lower():
|
||||
# It's the first or only IfModule in the file
|
||||
return
|
||||
return
|
||||
|
||||
if not loadmod_args:
|
||||
# Do not try to enable mod_ssl
|
||||
|
|
|
|||
|
|
@ -183,6 +183,17 @@ class CentOS6Tests(util.ApacheTest):
|
|||
exclude=False)
|
||||
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__":
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue