mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
boulder#130 fixed
This commit is contained in:
parent
93cdad120d
commit
0216ea3f26
2 changed files with 3 additions and 10 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()))
|
||||
|
|
|
|||
|
|
@ -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