mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 08:03:10 +02:00
Test "install --nginx" w/ misconfiguration
This commit is contained in:
@@ -105,6 +105,15 @@ class CLITest(unittest.TestCase):
|
|||||||
else:
|
else:
|
||||||
self.assertTrue("The requested apache plugin does not appear" in ret)
|
self.assertTrue("The requested apache plugin does not appear" in ret)
|
||||||
|
|
||||||
|
# Sending nginx a non-existent conf dir will simulate misconfiguration
|
||||||
|
args = ["install", "--nginx", "--cert-path", "/tmp/blah", "--key-path", "/tmp/blah",
|
||||||
|
"--nginx-server-root", "/nonexistent/thing"]
|
||||||
|
ret, _, _, _ = self._call(args)
|
||||||
|
|
||||||
|
if "nginx" in plugins:
|
||||||
|
self.assertTrue("The nginx plugin is not working" in ret)
|
||||||
|
else:
|
||||||
|
self.assertTrue("The requested nginx plugin does not appear" in ret)
|
||||||
|
|
||||||
def test_rollback(self):
|
def test_rollback(self):
|
||||||
_, _, _, client = self._call(['rollback'])
|
_, _, _, client = self._call(['rollback'])
|
||||||
|
|||||||
Reference in New Issue
Block a user