mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
boulder#130 fixed
This commit is contained in:
@@ -315,11 +315,7 @@ class Network(object):
|
|||||||
try:
|
try:
|
||||||
authzr_uri = response.links['up']['url']
|
authzr_uri = response.links['up']['url']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# TODO: Right now Boulder responds with the authorization resource
|
raise errors.NetworkError('"up" Link header missing')
|
||||||
# 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')
|
|
||||||
challr = messages2.ChallengeResource(
|
challr = messages2.ChallengeResource(
|
||||||
authzr_uri=authzr_uri,
|
authzr_uri=authzr_uri,
|
||||||
body=messages2.ChallengeBody.from_json(response.json()))
|
body=messages2.ChallengeBody.from_json(response.json()))
|
||||||
|
|||||||
@@ -286,11 +286,8 @@ class NetworkTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_answer_challenge_missing_next(self):
|
def test_answer_challenge_missing_next(self):
|
||||||
self._mock_post_get()
|
self._mock_post_get()
|
||||||
self.assertTrue(self.net.answer_challenge(
|
self.assertRaises(errors.NetworkError, self.net.answer_challenge,
|
||||||
self.challr.body, challenges.DNSResponse()) is None)
|
self.challr.body, challenges.DNSResponse())
|
||||||
# TODO: boulder#130, acme-spec#110
|
|
||||||
# self.assertRaises(errors.NetworkError, self.net.answer_challenge,
|
|
||||||
# self.challr.body, challenges.DNSResponse())
|
|
||||||
|
|
||||||
def test_retry_after_date(self):
|
def test_retry_after_date(self):
|
||||||
self.response.headers['Retry-After'] = 'Fri, 31 Dec 1999 23:59:59 GMT'
|
self.response.headers['Retry-After'] = 'Fri, 31 Dec 1999 23:59:59 GMT'
|
||||||
|
|||||||
Reference in New Issue
Block a user