Test fixes

This commit is contained in:
Joona Hoikkala 2019-03-18 18:30:58 +02:00
parent 836a1b537b
commit 51343c8e4c
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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