63 Commits
Author SHA1 Message Date
Brad WarrenandBrad Warren 052be6d4ba Check version requirements on optional dependencies (#3618)
* Add and test activate function to acme.

This function can be used to check if our optional dependencies are
available and they meet our version requirements.

* use activate in dns_resolver

* use activate in dns_available() in challenges_test

* Use activate in dns_resolver_test

* Use activate in certbot.plugins.util_test

* Use acme.util.activate for psutil

* Better testing and handling of missing deps

* Factored out *_available() code into a common function

* Delayed exception caused from using acme.dns_resolver without
  dnspython until the function is called. This makes both
  production and testing code simpler.

* Make a common subclass for already_listening tests

* Simplify mocking of USE_PSUTIL in tests
2016-10-12 15:55:50 -07:00
Erica PortnoyandBrad Warren 20ac4aebaf Match psutil port open checking behavior to that of socket test, and update tests. (#3589)
* Match psutil port open checking behavior to that of socket test, and update tests.

* Update docstring
2016-10-12 15:55:50 -07:00
Brad WarrenandBrad Warren 54b36269ce Only verify required ports are available (#3608)
* only verify port is available when you actually need it

* refactor code to create achalls

* Test port checks are based on achall

* test that only the port for the requested challenge is checked in standalone
2016-10-12 15:55:50 -07:00
Brad WarrenandGitHub da22e64563 Allow tests to pass without dnspython (#3581)
* move skipUnless to test_util

* add skip_unless to acme test_util

* Make dns_resolver_tests work with and without dnspython

* make acme.challenges_test pass when dns is unavailable
2016-10-04 16:49:51 -07:00
Peter EckersleyandGitHub 1584ee8ac6 Merge pull request #3466 from certbot/all-together-now
DNS challenge support in the manual plugin and general purpose --preferred-challenges flag
2016-09-22 14:15:25 -07:00
Jacob Hoffman-Andrews 3eaafcecad Use cli_command to print. 2016-09-16 18:45:21 -07:00
Jacob Hoffman-Andrews 6e0a68f844 Improve error message for "no installer plugin." 2016-09-16 14:21:13 -07:00
Brad Warren a8b2880963 fix ip logging prompt for manual-test-mode 2016-08-29 18:45:16 -07:00
Brad Warren 5d8127177c correct challenge domain name 2016-08-29 16:48:31 -07:00
Brad Warren eb88e7a577 Remove standalone_supported_challenges value from manual test 2016-08-29 16:34:43 -07:00
Brad Warren 456f3527cd Only log one warning when missing dnspython 2016-08-29 16:31:58 -07:00
Brad Warren 55e86983e7 fix test mock after moving getUtility call 2016-08-29 16:30:17 -07:00
Brad Warren b854d10795 reduce number of ip_logging_permission checks 2016-08-29 16:18:23 -07:00
Brad Warren 26467d4233 update manual plugin info 2016-08-29 15:57:03 -07:00
Brad Warren 322546b8d1 make manual use --preferred-challenges flag 2016-08-29 15:44:31 -07:00
Brad Warren 7b7477ab94 Merge branch 'prettify' into all-together-now 2016-08-29 15:20:00 -07:00
Brad Warren 24cc03d1f6 only print deprecation warning when --standalone-supported-challenges is set 2016-08-29 13:32:19 -07:00
Brad Warren c0d060a8f1 fix typo and long line 2016-08-29 12:44:20 -07:00
Noah Swartz d8031f16bd add deprication 2016-08-25 17:45:13 -07:00
Noah Swartz 5b112cef7a revert standalone 2016-08-25 16:58:23 -07:00
Noah Swartz 11b6dd22ef Merge remote-tracking branch 'origin/master' into issue_2558 2016-08-25 16:38:53 -07:00
Brad Warren d3bdf97720 fix standalone flag test 2016-08-24 16:39:41 -07:00
Noah Swartz 51afe06ff7 in progress change 2016-08-24 16:18:23 -07:00
Brad Warren 80bcf9a678 make docstring prettier when converted to html 2016-08-24 08:35:53 -07:00
Brad Warren ad45a664a8 use "iff" iff it is common international shorthand 2016-08-24 08:26:23 -07:00
Brad Warren a69ad2afa8 Give lambda parameter a more useful name 2016-08-23 11:52:28 -07:00
Brad Warren 3fe5d9c3e0 add custom skipUnless function 2016-08-23 11:39:35 -07:00
Mathieu Leduc-Hamel 9958a7fc1c Handle missing dnspython by displaying a warning message 2016-08-18 21:41:33 -04:00
Brad Warren 702ed89007 use six instead of custom refresh function 2016-08-18 14:49:11 -07:00
Mathieu Leduc-Hamel 075e666300 Fixes broken tests 2016-08-18 09:54:30 -04:00
Mathieu Leduc-Hamel fff459e6f5 Factored out the ip logging permission functionalities 2016-08-13 11:09:17 -04:00
Mathieu Leduc-Hamel f7a09e5e44 Add dns-01 challenge support to the Manual plugin 2016-08-13 10:52:03 -04:00
Peter Eckersley cfefda7267 Merge remote-tracking branch 'origin/master' into multi-topic-help 2016-08-12 18:30:29 -07:00
Peter Eckersley 7da7d47e8a Merge remote-tracking branch 'origin/master' into multi-topic-help 2016-08-12 17:40:49 -07:00
Yen Chi Hsuan fe76d558ed Enable unit tests of certbot core on Python 3 2016-08-06 21:09:43 +08:00
Peter EckersleyandGitHub e1d8ba4977 Merge pull request #3269 from yan12125/python3-certonly
Python 3 support for certonly
2016-08-05 14:43:55 -07:00
Yen Chi Hsuan 8a09a7ed67 Python 3 support for certonly 2016-07-30 23:07:02 +08:00
Joona Hoikkala f4f80b339f Fixed merge error 2016-07-25 11:36:42 +03:00
Joona Hoikkala 603e3ac3ea Merge remote-tracking branch 'upstream/master' into psutil 2016-07-25 11:26:05 +03:00
Joona Hoikkala 774e9870ae Fixed the renew URL 2016-07-25 10:23:40 +03:00
Ville Skyttä c7b89c334b Use logger.warning instead of deprecated warn 2016-07-22 09:54:28 +03:00
Ville Skyttä 86b287b338 Use assertEqual instead of deprecated assertEquals 2016-07-22 09:54:28 +03:00
Peter Eckersley a49d26f607 Merge remote-tracking branch 'origin/master' into multi-topic-help 2016-07-20 16:56:23 -07:00
Joona Hoikkala 3b4fb2401d Coverage fixes, and unused fallback removal 2016-07-16 10:02:57 +03:00
Joona Hoikkala e39b3214b4 Test fixes 2016-07-16 00:00:51 +03:00
Joona Hoikkala de3010d99b Tests for non-psutil socket bind check 2016-07-15 23:19:00 +03:00
Joona Hoikkala e01bf96891 :Merge remote-tracking branch 'upstream/master' into psutil 2016-07-15 17:06:19 +03:00
Joona Hoikkala e11e42f98e Added simple socket bind check for populated ports if psutil is not available 2016-07-12 15:09:31 +03:00
Peter Eckersley 894af91777 Fix test 2016-07-08 14:09:26 -07:00
Peter Eckersley 0bedeb449a Refactor path_surgery into plugins.util so that nginx can call it 2016-07-08 14:03:21 -07:00