From d89b695be6a868d6a14bc15efe914da8cf245150 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Wed, 16 Sep 2015 16:58:51 -0700 Subject: [PATCH] client and nginx configs are not the same thing... --- letsencrypt-nginx/letsencrypt_nginx/tests/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/letsencrypt-nginx/letsencrypt_nginx/tests/util.py b/letsencrypt-nginx/letsencrypt_nginx/tests/util.py index 1ea41b83d..e6fd9daf1 100644 --- a/letsencrypt-nginx/letsencrypt_nginx/tests/util.py +++ b/letsencrypt-nginx/letsencrypt_nginx/tests/util.py @@ -61,7 +61,13 @@ def get_nginx_configurator( name="nginx", version=version) config.prepare() - zope.component.provideUtility(config) + # also make a general client config for good measure... + namespace = mock.MagicMock( + config_dir='/tmp/config', work_dir='/tmp/foo', foo='bar', + server='https://acme-server.org:443/new') + from letsencrypt.configuration import NamespaceConfig + nsconfig = NamespaceConfig(namespace) + zope.component.provideUtility(nsconfig) return config