Just set -a rather than redoing the whole testing infrastructure

This commit is contained in:
Erica Portnoy 2023-01-09 14:42:27 -08:00
parent 7427daaa6c
commit 3c9973b4d6

View file

@ -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"'])