From 26606a17076ee190062da1f784a42aef6a150e45 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 27 Mar 2019 14:01:10 +0100 Subject: [PATCH] Fix test and test deploy hook flag --- .../certbot_integration_tests/certbot_tests/test_main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py index 22b34e54b..9442b9f3f 100644 --- a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py +++ b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py @@ -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)