mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
Create tests to prevent future regressions
This commit is contained in:
parent
3c34fd80c7
commit
8ddebe3d12
1 changed files with 6 additions and 0 deletions
|
|
@ -429,9 +429,15 @@ class TwoVhost80Test(util.ApacheTest):
|
|||
self.config.parser.add_dir_to_ifmodssl = mock_add_dir
|
||||
|
||||
self.config.prepare_server_https("443")
|
||||
# Changing the order these modules are enabled breaks the reverter
|
||||
self.assertEqual(mock_enable.call_args_list[0][0][0], "socache_shmcb")
|
||||
self.assertEqual(mock_enable.call_args[0][0], "ssl")
|
||||
self.assertEqual(mock_enable.call_args[1], {"temp": False})
|
||||
|
||||
self.config.prepare_server_https("8080", temp=True)
|
||||
# Changing the order these modules are enabled breaks the reverter
|
||||
self.assertEqual(mock_enable.call_args_list[2][0][0], "socache_shmcb")
|
||||
self.assertEqual(mock_enable.call_args[0][0], "ssl")
|
||||
# Enable mod is temporary
|
||||
self.assertEqual(mock_enable.call_args[1], {"temp": True})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue