Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-24Fix issue #7165 in _create_challenge_dirs(), attempt to fix pylint errors ↵martin-c
(#7568) * fix issue #7165 by checking if directory exists before trying to create it, fix possible pylint issues in webroot.py * fix get_chall_pref definition * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Adrien Ferrand <adferrand@users.noreply.github.com>
2020-02-23acme: ignore params in content-type check (#7342)alexzorin
* acme: ignore params in content-type check Fixes the warning in #7339 * Suppress coverage complaint in test * Update CHANGELOG * Repair symlink Co-authored-by: Adrien Ferrand <adferrand@users.noreply.github.com>
2020-02-23Add simple commentscumul0529
2020-02-23Add `TestCase.assertLogs()` backport for Python 2.7cumul0529
2020-02-23Add this change to CHANGELOG.mdcumul0529
2020-02-23Add my name to AUTHORS.mdcumul0529
:)
2020-02-23Trivial code clean-upcumul0529
2020-02-23Add logging test for `_parse_files()`cumul0529
2020-02-23Add test case for `_parse_ssl_options()`cumul0529
2020-02-23Remove `unicode_support/` path in test casecumul0529
2020-02-23Relpace deprecated `logger.warn()` with `logger.warning()`cumul0529
2020-02-23Fix lint problems with long linesSeth Schoen
2020-02-23Added test for valid/invalid unicode characterscumul
2020-02-23Use `io` module instead of `codecs`cumul
See https://mail.python.org/pipermail/python-list/2015-March/687124.html
2020-02-23Use UTF-8 encoding for nginx plugincumul
2020-02-22Add testosirisinferi
2020-02-21Refactor cli.py, splitting in it smaller submodules (#6803)Raklyon
* Refactor cli.py into a package with submodules * Added unit tests for helpful module in cli. * Fixed linter errors * Fixed pylint issues * Updated changelog.md * Fixed test failing and mypy error. Appeared a new pylint error (seems to be in conflict with mypy) mypy require zope.interface to be imported but when imported it is not used and pylint throws an error. * Fixed pylint errors * Apply changes to cli since last merge from master (efc8d49806b14a31d88cfc0f1b6daca1dd373d8d) * Fix lint * Remaining lint errors Co-authored-by: Adrien Ferrand <adferrand@users.noreply.github.com>
2020-02-21Move our macOS tests to Azure Pipelines (#7793)Brad Warren
[Our macOS tests are failing](https://travis-ci.com/certbot/certbot/builds/149965318) again this time due to the problem described at https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/14. I tried adding `update: true` to the Homebrew config as described in that thread, but [it didn't work](https://travis-ci.com/certbot/certbot/builds/150070374). I also tried updating the macOS image we use which [didn't work](https://travis-ci.com/certbot/certbot/builds/150072389). Since we continue to have problems with macOS on Travis, let try moving the tests to Azure Pipelines. * test macos * Remove Travis macOS setup * add displayName
2020-02-21add pgp key docs (#7765)Brad Warren
Fixes #7613.
2020-02-19Correct AutoHSTS docs (#7767)Brad Warren
domains is a list of strings, not a single string. * Correct AutoHSTS docs. * Fix Apache enable_autohsts docs.
2020-02-18Fix spurious pylint errors. (#7780)Brad Warren
This fixes (part of) the problem identified in https://github.com/certbot/certbot/pull/7657#issuecomment-586506340. When I tested our pylint setup on Python 3.5.9, 3.6.9, or 3.6.10, tests failed with: ``` ************* Module acme.challenges acme/acme/challenges.py:57:15: E1101: Instance of 'UnrecognizedChallenge' has no 'jobj' member (no-member) ************* Module acme.jws acme/acme/jws.py:28:16: E1101: Class 'Signature' has no '_orig_slots' member (no-member) ``` These errors did not occur for me on Python 3.6.7 or Python 3.7+. You also cannot run our lint setup on Python 2.7 because our pinned version of pylint's dependency `asteroid` does not support Python 2. Because of this, `pylint` is not installed in the virtual environment created by `tools/venv.py` and our [`lint` environment in tox specifies that Python 3 should be used](https://github.com/certbot/certbot/blob/fd64c8c33b2176e6569d64d30776bd5fc9fd3820/tox.ini#L132). I tried updating pylint and its dependencies to fix the problem, but they still occur so I think adding back these disable checks on these lines again is the best fix for now.
2020-02-15Remove letshelp-certbot (#7761)Brad Warren
* remove references to letshelp * remove letshelp files * Remove line continuation Co-authored-by: ohemorange <ebportnoy@gmail.com>
2020-02-15more robustly stop patches (#7763)Brad Warren
2020-02-14Remove useless pylint error suppression directives (#7657)Adrien Ferrand
As pylint is evolving, it improves its accuracy, and several pylint error suppression (`# pylint: disable=ERROR) added in certbot codebase months or years ago are not needed anymore to make it happy. There is a (disabled by default) pylint error to detect the useless suppressions (pylint-ception: `useless-suppression`). It is not working perfectly (it has also false-positives ...) but it is a good start to clean the codebase. This PR removes several of these useless suppressions as detected by the current pylint version we use. * Remove useless suppress * Remove useless lines
2020-02-13Merge pull request #7766 from certbot/min-pyparsing-versionm0namon
Clarify the minimum pyparsing version
2020-02-13Remove _internal from docstring.Brad Warren
2020-02-12update pyparsing commenttravis-test-pyparsing-versionBrad Warren
2020-02-12Remove duplicate pyparsing pinBrad Warren
2020-02-11Fix unpinned tests (#7760)Brad Warren
Our nightly tests failed last night due to a new release of `virtualenv` and `pip`'s lack of dependency resolution: https://travis-ci.com/certbot/certbot/jobs/285797857#L280. It looks like we were not the only ones affected by this problem: https://github.com/pypa/virtualenv/issues/1551 This fixes the problem by using `-I` to skip the logic where `pip` decides a dependency is already satisfied and has it reinstall/update the packages passed to `pip` and all of their dependencies. You can see our nightly tests passing with this change at https://github.com/certbot/certbot/runs/439231061.
2020-02-10Print script output in case of a failure. (#7759)Brad Warren
These tests failed at https://travis-ci.com/certbot/certbot/jobs/285202481 but do not include any output from the script about what went wrong because the string created from `subprocess.CalledProcessError` does not include value of output. This PR fixes that by printing these values which `pytest` will include in the output if the test fails.
2020-02-10Move ocsp.py to public api (#7744)Joona Hoikkala
We should move ocsp.py to public API, as an upcoming OCSP prefetching functionality in Apache plugin relies on it, and as the plugins are note released in lockstep with the Certbot core, we need to be careful when changing those APIs. * Move ocsp.py to public api * Fix type annotations, move to pointing to an interface and fix linting * Add certbot.ocsp to documentation table of contents * Modify tests to reflect the changes in ocsp.py * Add changelog entry * Fix notAfter mock for tests
2020-02-07Really remove old docs link from README (#7758)3907b53bBrad Warren
2020-02-07Remove link to letsencrypt readthedocs (#7757)Brad Warren
After a brief discussion in Mattermost, I shut down letsencrypt.readthedocs.io. Turns out we were linking to it in our README here so let's remove the broken link. I didn't update the link to point to one of the readthedocs projects we still have because are main Certbot docs are self-hosted rather than being on readthedocs.
2020-02-07Remove text that certbot.tests.utils isn't public (#7754)Brad Warren
2020-02-07Don't display todo comments in docs (#7753)Brad Warren
Currently if you go to https://certbot.eff.org/docs/api/certbot.crypto_util.html, there is a todo comment displayed at the top of the page. These todos were written for developers, not users, so I do not think they should be shown from our documentation. This PR makes the quick and easy fix of configuring Sphinx not to show these todo items. I created #7752 to track removing all of these todos from our docstrings and disabling the Sphinx todo extension. * Set todo_include_todos=False in sphinx-quickstart * Remove todos from existing docs.
2020-02-07Merge pull request #7735 from certbot/apache-parser-v2ohemorange
[Apache v2] Merge apache-parser-v2 feature branch back to master
2020-02-07Merge pull request #7738 from osirisinferi/nginx-hostnameschoen
[nginx] Parse $hostname in `server_name`
2020-02-06Fixing existing testsOsirisInferi
2020-02-06Remove todo::OsirisInferi
2020-02-06Add test for $hostname parsingOsirisInferi
2020-02-06Merge pull request #7751 from Pilifer/masterAdrien Ferrand
Don't verify certificate in HTTP01Response.simple_verify (certbot#6614)
2020-02-06restore CHANGELOG in root directoryFilip Lajszczak
2020-02-06Merge branch 'master' of https://github.com/certbot/certbotFilip Lajszczak
2020-02-06Add triggers for only a single CI system (#7748)Brad Warren
* Configure travis-test to only run on Travis. * Configure azure-test to only run on Azure. * Add docs and comments to keep it up-to-date.
2020-02-06Set recreate = true in tox.ini. (#7746)Brad Warren
Fixes #7745.
2020-02-06Windows installer integration tests (#7724)Adrien Ferrand
As discussed in #7539, we need proper tests of the Windows installer itself in order to variety that all the logic contained in a production-grade runtime of Certbot on Windows is correctly setup by each version of the installer, and so for a variety of Windows OSes. This PR handles this requirement. The new `windows_installer_integration_tests` module in `certbot-ci` will: * run the given Windows installer * check that Certbot is properly installed and working * check that the scheduled renew task is set up * check that the scheduled task actually launch the Certbot renew logic The Windows nightly tests are updated accordingly, in order to have the tests run on Windows Server 2012R2, 2016 and 2019. These tests will evolve as we add more logic on the installer. * Configure an integration test testing the windows installer * Write the test module * Configurable installer path, prepare azure pipelines * Fix option * Update test_main.py * Add confirmation for this destructive test * Use regex to validate certbot --version output * Explicit dependency on a log output * Use an exception to ask confirmation * Use --allow-persistent-changes
2020-02-06Merge pull request #7743 from certbot/candidate-1.2.0Brad Warren
Candidate 1.2.0
2020-02-06Missing importOsirisInferi
2020-02-06Wrap makedirs() within exception handelrsOsirisInferi
2020-02-05Merge pull request #7729 from certbot/fix-nginx-typom0namon
Fix a typo in Nginx