mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Just set -a rather than redoing the whole testing infrastructure
This commit is contained in:
parent
7427daaa6c
commit
3c9973b4d6
1 changed files with 1 additions and 3 deletions
|
|
@ -820,12 +820,10 @@ def test_reconfigure(context: IntegrationTestsContext) -> None:
|
|||
conf_path = join(context.config_dir, 'renewal', '{}.conf'.format(certname))
|
||||
|
||||
# Test changing configurator
|
||||
context.certbot(['reconfigure', '--cert-name', certname, '--nginx'])
|
||||
context.certbot(['reconfigure', '--cert-name', certname, '-a', 'nginx'])
|
||||
with open(conf_path, 'r') as f:
|
||||
assert 'authenticator = nginx' in f.read(), \
|
||||
'Expected authenticator to be changed to nginx in renewal config'
|
||||
assert 'installer = nginx' in f.read(), \
|
||||
'Expected installer to be changed to nginx in renewal config'
|
||||
|
||||
# Test adding new hook
|
||||
context.certbot(['reconfigure', '--cert-name', certname, '--pre-hook', '"echo new pre hook"'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue