Fix test and test deploy hook flag

This commit is contained in:
Adrien Ferrand
2019-03-27 14:01:10 +01:00
parent 7a687268d6
commit 26606a1707
@@ -21,7 +21,7 @@ def context(request):
def test_manual_http_auth(context):
"""Test the HTTP-01 challenge using manual plugin."""
with misc.create_tcp_server(context.http_01_port) as webroot:
with misc.create_http_server(context.http_01_port) as webroot:
manual_http_hooks = misc.manual_http_hooks(webroot)
certname = context.domain()
@@ -32,9 +32,8 @@ def test_manual_http_auth(context):
'--manual-cleanup-hook', manual_http_hooks[1],
'--pre-hook', 'echo wtf.pre >> "{0}"'.format(context.hook_probe),
'--post-hook', 'echo wtf.post >> "{0}"'.format(context.hook_probe),
'--renew-hook', 'echo renew >> "{0}"'.format(context.hook_probe)
'--deploy-hook', 'echo deploy >> "{0}"'.format(context.hook_probe)
])
with pytest.raises(AssertionError):
assert_hook_execution(context.hook_probe, 'renew')
assert_hook_execution(context.hook_probe, 'deploy')
assert_save_renew_hook(context.config_dir, certname)