mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Merge branch 'master' of ssh://github.com/letsencrypt/lets-encrypt-preview into renewer
This commit is contained in:
commit
45541a3a23
3 changed files with 5 additions and 12 deletions
|
|
@ -315,11 +315,7 @@ class Network(object):
|
|||
try:
|
||||
authzr_uri = response.links['up']['url']
|
||||
except KeyError:
|
||||
# TODO: Right now Boulder responds with the authorization resource
|
||||
# instead of a challenge resource... this can be uncommented
|
||||
# once the error is fixed (boulder#130).
|
||||
return None
|
||||
# raise errors.NetworkError('"up" Link header missing')
|
||||
raise errors.NetworkError('"up" Link header missing')
|
||||
challr = messages2.ChallengeResource(
|
||||
authzr_uri=authzr_uri,
|
||||
body=messages2.ChallengeBody.from_json(response.json()))
|
||||
|
|
|
|||
|
|
@ -908,7 +908,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
"""
|
||||
try:
|
||||
proc = subprocess.Popen(
|
||||
["sudo", self.config.apache_ctl, "configtest"], # TODO: sudo?
|
||||
[self.config.apache_ctl, "configtest"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
stdout, stderr = proc.communicate()
|
||||
|
|
@ -1046,7 +1046,7 @@ def enable_mod(mod_name, apache_init_script, apache_enmod):
|
|||
try:
|
||||
# Use check_output so the command will finish before reloading
|
||||
# TODO: a2enmod is debian specific...
|
||||
subprocess.check_call(["sudo", apache_enmod, mod_name], # TODO: sudo?
|
||||
subprocess.check_call([apache_enmod, mod_name],
|
||||
stdout=open("/dev/null", "w"),
|
||||
stderr=open("/dev/null", "w"))
|
||||
apache_restart(apache_init_script)
|
||||
|
|
|
|||
|
|
@ -286,11 +286,8 @@ class NetworkTest(unittest.TestCase):
|
|||
|
||||
def test_answer_challenge_missing_next(self):
|
||||
self._mock_post_get()
|
||||
self.assertTrue(self.net.answer_challenge(
|
||||
self.challr.body, challenges.DNSResponse()) is None)
|
||||
# TODO: boulder#130, acme-spec#110
|
||||
# self.assertRaises(errors.NetworkError, self.net.answer_challenge,
|
||||
# self.challr.body, challenges.DNSResponse())
|
||||
self.assertRaises(errors.NetworkError, self.net.answer_challenge,
|
||||
self.challr.body, challenges.DNSResponse())
|
||||
|
||||
def test_retry_after_date(self):
|
||||
self.response.headers['Retry-After'] = 'Fri, 31 Dec 1999 23:59:59 GMT'
|
||||
|
|
|
|||
Loading…
Reference in a new issue