Skip to content

Commit

Permalink
Add debugging info for Nginx tls-sni and http integration tests purpo…
Browse files Browse the repository at this point in the history
…ses (#6414)
  • Loading branch information
ohemorange authored and sydneyli committed Oct 15, 2018
1 parent e0f7600 commit 139ef20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions certbot-nginx/certbot_nginx/http_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def _mod_config(self):
config = [self._make_or_mod_server_block(achall) for achall in self.achalls]
config = [x for x in config if x is not None]
config = nginxparser.UnspacedList(config)
logger.debug("Generated server block:\n%s", str(config))

self.configurator.reverter.register_file_creation(
True, self.challenge_conf)
Expand Down
2 changes: 2 additions & 0 deletions certbot-nginx/certbot_nginx/tls_sni_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def _mod_config(self, ll_addrs):
with open(self.challenge_conf, "w") as new_conf:
nginxparser.dump(config, new_conf)

logger.debug("Generated server block:\n%s", str(config))

def _make_server_block(self, achall, addrs):
"""Creates a server block for a challenge.
Expand Down
1 change: 1 addition & 0 deletions certbot-nginx/tests/boulder-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ test_deployment_and_rollback() {
}

export default_server="default_server"
nginx -v
reload_nginx
certbot_test_nginx --domains nginx.wtf run
test_deployment_and_rollback nginx.wtf
Expand Down

0 comments on commit 139ef20

Please sign in to comment.