Commit Graph
35 Commits
Author SHA1 Message Date
Blake GriffithandPeter Eckersley 7773568332 Update ACME error namespace to match the new draft. (#3469)
* Update error namespace in acme package.

* Use new error namespace in certbot.

* fix lint and py26 errors.

* Update with_code docstring.

* @pde's suggestions
2016-10-12 14:46:02 -07:00
Blake GriffithandPeter Eckersley dcb3fb7382 Use correct Content-Types in headers. (#3566)
* Add Content-Type: app/jose+json to post requests.

* Add tests for proper content type.
2016-10-05 12:28:38 -07:00
Blake Griffith 14f00df14d Remove try/finally block in ErrorHandler.__exit__ 2016-07-19 11:09:27 -05:00
Blake Griffith 1bf0518944 Remove superfluous comprehensions. 2016-07-18 14:01:43 -05:00
Blake Griffith 9bc50d4a47 Try to fix travis-ci lint failure 2016-07-11 12:44:21 -05:00
Blake Griffith 156ea46a09 Compare initial and final signals in tests. 2016-07-09 16:27:49 -05:00
Blake Griffith ed73c55b7b Instantiate exception_raised in test. 2016-07-08 16:03:40 -05:00
Blake Griffith 4b4a02a7af Remove extra tracking of prev_handlers. 2016-07-07 20:07:13 -05:00
Blake Griffith e28560514a Test that ErrorHandler resets default signals. 2016-07-06 16:56:11 -05:00
Blake Griffith 2e7f02805c Call _call_signals after _reset_signals. 2016-07-06 15:59:51 -05:00
Blake Griffith 40983d67d7 Alphabetize imports in error_handler_test.py 2016-07-06 13:19:58 -05:00
Blake Griffith 3d3908c8b3 Update _call_signals docstring. 2016-07-06 13:19:03 -05:00
Blake Griffith ece1f6a24d Don't use _private functions in tests. 2016-07-05 23:32:22 -05:00
Blake Griffith e9f879a443 Use assertTrue and index in _SIGNALS 2016-07-05 23:32:22 -05:00
Blake Griffith 7ade835476 import module instead of function 2016-07-05 23:32:22 -05:00
Blake Griffith 8333829bbe Check that ErrorHandler raises exception. 2016-07-05 23:32:22 -05:00
Blake Griffith 5e4f250110 Stylize _signal_handler docstring. 2016-07-05 23:32:22 -05:00
Blake Griffith 815887d4e4 Refactor ErrorHandler.__exit__
also call_signal -> call_signals
2016-07-05 23:32:22 -05:00
Blake Griffith 277b7a89f1 Update ErrorHandler docstring. 2016-07-05 23:32:22 -05:00
Blake Griffith 79c602ffc8 Make non-public methods as private. 2016-07-05 23:14:53 -05:00
Blake Griffith 15336d45bd Reset self.body_executed in __enter__ 2016-07-05 23:14:53 -05:00
Blake Griffith 777a654d90 Move SignalExit to errors.py 2016-07-05 23:14:53 -05:00
Blake Griffith 92870f0bbb Better docstring for _signal_handler 2016-06-30 10:22:12 -05:00
Blake Griffith e652141449 Use lambda instead of closure. 2016-06-28 16:55:46 -05:00
Blake Griffith 1356941f97 Test signal handling in error handler. 2016-06-28 16:31:21 -05:00
Blake Griffith bbd5ce45e9 Defer signals in ErrorHandler. 2016-06-28 16:31:21 -05:00
Blake Griffith a148d2ddfa Limit domains to 255 octets. 2016-06-17 18:59:33 -05:00
Blake Griffith 2625daad75 Fix more FQDN tests in ops_test.py 2016-06-17 18:59:33 -05:00
Blake Griffith a7a2049d69 Fix FQDN tests. 2016-06-17 18:59:33 -05:00
Blake Griffith 6156b452bc Fix FQDN checks. 2016-06-17 18:59:33 -05:00
Blake Griffith b05258243a More le_util in docs and compatibility tests 2016-05-26 15:57:50 -05:00
Blake Griffith 2d121585c9 Catch more le_util in certbot-nginx 2016-05-26 15:51:56 -05:00
Blake Griffith f0dc0de40a Catch more le_util usage in certbot-apache 2016-05-26 13:43:00 -05:00
Blake Griffith d9d2377242 Rename certbot.le_util to certbot.util
Also rename certbot/tests/le_util_test.py to certbot/tests/util_test.py
2016-05-25 18:50:02 -05:00
Blake GriffithandTheNavigat 189d6eea26 Add check that symlinks exist. 2016-01-29 18:26:24 +02:00