mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
parent
34d78ff626
commit
5f6b1378ec
2 changed files with 5 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ ZERO_ARG_ACTIONS = set(("store_const", "store_true",
|
|||
# This dictionary is used recursively, so if A modifies B and B modifies C,
|
||||
# it is determined that C was modified by the user if A was modified.
|
||||
VAR_MODIFIERS = {"account": set(("server",)),
|
||||
"renew_hook": set(("deploy_hook",)),
|
||||
"server": set(("dry_run", "staging",)),
|
||||
"webroot_map": set(("webroot_path",))}
|
||||
|
||||
|
|
|
|||
|
|
@ -438,6 +438,10 @@ class SetByCliTest(unittest.TestCase):
|
|||
def setUp(self):
|
||||
reload_module(cli)
|
||||
|
||||
def test_deploy_hook(self):
|
||||
self.assertTrue(_call_set_by_cli(
|
||||
'renew_hook', '--deploy-hook foo'.split(), 'renew'))
|
||||
|
||||
def test_webroot_map(self):
|
||||
args = '-w /var/www/html -d example.com'.split()
|
||||
verb = 'renew'
|
||||
|
|
|
|||
Loading…
Reference in a new issue