Suggest DNS authenticator when it's needed (#5638)

This commit is contained in:
Brad Warren
2018-02-28 16:08:06 -08:00
committed by GitHub
parent e9bc4a319b
commit 78735fa2c3
2 changed files with 18 additions and 4 deletions
+6
View File
@@ -272,6 +272,12 @@ class HandleAuthorizationsTest(unittest.TestCase):
self.mock_net.acme_version = 2
self._test_preferred_challenges_not_supported_common(combos=False)
def test_dns_only_challenge_not_supported(self):
authzrs = [gen_dom_authzr(domain="0", challs=[acme_util.DNS01])]
mock_order = mock.MagicMock(authorizations=authzrs)
self.assertRaises(
errors.AuthorizationError, self.handler.handle_authorizations, mock_order)
def _validate_all(self, unused_1, unused_2):
for i, aauthzr in enumerate(self.handler.aauthzrs):
azr = aauthzr.authzr