Brad Warren
50a1f6340f
Add _check_version.
2017-08-10 16:38:27 -07:00
Brad Warren
8c4ff5cb63
Use context manager to read conf file.
2017-08-10 16:36:08 -07:00
Brad Warren
290f5b8ce7
add test_set_config_dir
2017-08-10 16:35:21 -07:00
Brad Warren
48c5731a6b
Write out temp config instead of mocking.
2017-08-10 16:29:08 -07:00
Brad Warren
749f758adb
use a temporary directory
2017-08-10 16:25:30 -07:00
Brad Warren
2e8a8dfed5
add _set_config_dir
2017-08-10 16:17:46 -07:00
Brad Warren
25d1f6ec75
Test all branches of test_get_config_var
2017-08-10 16:11:09 -07:00
Brad Warren
4c4b63437f
Test building of get_config_var command
2017-08-10 15:28:17 -07:00
Brad Warren
02c7eca6da
Rename test classes and methods.
2017-08-10 15:08:41 -07:00
Brad Warren
b72dfc0c08
Add get_config_var
2017-08-10 15:07:32 -07:00
Brad Warren
7334fc3066
Rename postfix_dir to config_dir
2017-08-10 14:29:56 -07:00
Brad Warren
4e5740615c
Use util.check_output in Postfix installer
2017-08-10 14:25:08 -07:00
Brad Warren
5a1d031f07
Rename util to certbot_util
2017-08-10 14:19:44 -07:00
Brad Warren
4715b2b12c
Further document check_output
2017-08-10 14:18:27 -07:00
Brad Warren
5beaae3b65
Add check_output function and tests.
2017-08-10 14:17:13 -07:00
Brad Warren
dfd1cceb9b
Test prepare() failure due to missing postconf
2017-08-10 12:26:47 -07:00
Brad Warren
192f0f60da
test add_parser_arguments
2017-08-10 12:19:59 -07:00
Brad Warren
b395b72d1b
Don't hardcode postconf path.
2017-08-10 11:51:01 -07:00
Brad Warren
a2dbf2fe4c
Fix spacing
2017-08-10 11:20:21 -07:00
Brad Warren
86fe5ad362
Move calls to postconf to prepare().
2017-08-10 11:16:46 -07:00
Brad Warren
89ae874f89
(temporarily) remove ca-certificates logic
2017-08-10 11:03:47 -07:00
Brad Warren
2a217189a6
(temporarily) remove policy_file
2017-08-10 10:58:27 -07:00
Noah Swartz and GitHub
af322a6068
Merge pull request #4896 from certbot/order-matters2
...
Explain --domains and --cert-name usage
2017-08-10 09:51:19 -07:00
Brad Warren
481fb8413b
Fix Postfix Installer __init__()
2017-08-10 08:50:08 -07:00
Brad Warren
d97a15861b
Add --postfix-config-dir argument
2017-08-09 16:06:06 -07:00
Brad Warren
a15fe57225
remove policy config param
2017-08-09 15:57:19 -07:00
cj-dev and Brad Warren
48c890be61
#4434 Test Config Base Class ( #4974 )
...
* Addressing #4434 by implementing ConfigTestCase which mocks out a NamespaceConfig for consistent config use across tests
* Refactor account_test.py for use with ConfigTestCase
* Remove superfluous setup/teardown
* Pylint oops.
* Fix redundant inheritance class definitions
* Separate ConfigTestCase's mocked directories
* Module import style consistency
* Refactor log_test.py for use with ConfigTestCase
* Refactor eff_test.py for use with ConfigTestCase. Also tweak for import style consistency
* Refactor reverter_test.py for use with ConfigTestCase
* Refactor renewal_test.py for use with ConfigTestCase
* Refactor main_test.py for use with ConfigTestCase
* Refactor storage_test.py for use with ConfigTestCase
* Refactor cert_manager_test.py for use with ConfigTestCase
* Refactor client_test.py for use with ConfigTestCase
* Refactor configuration_test.py for use with ConfigTestCase
* Pylint!
* Incorporating PR feedback
* Remove comment
2017-08-09 13:19:43 -07:00
Bob Strecansky and Brad Warren
5e58580d13
[ #4966 ] - Fedora 26 doesn't have development tools handy ( #4997 )
2017-08-09 09:12:36 -07:00
Brad Warren and GitHub
6c52cc49a7
Pin dependencies in compatibility tests. ( #5004 )
...
We now use tools/pip_install_editable.sh which installs our packages using the
pinned versions from certbot-auto.
We also use letsencrypt-auto-source/letsencrypt-auto instead of certbot-auto in
the root to:
1. Make sure OS bootstrappers are up to date with master.
2. Copy letsencrypt-auto-source into our tree so it can be used by
tools/pip_install_editable.sh later.
2017-08-08 15:31:41 -07:00
Brad Warren and GitHub
47b3d19170
Increase pinned configargparse version to 0.12.0. ( #4995 )
2017-08-08 12:03:48 -07:00
Noah Swartz and GitHub
32de7303dd
Merge pull request #4990 from certbot/fix-arch
...
Fix space in quiet check in BootstrapArchCommon
2017-08-08 09:13:54 -07:00
Noah Swartz and Brad Warren
f9ed53e698
Revocation reason ( #4987 )
...
* fix revocation reason help text
* add it to the docs
* move and expand revoke reason example
2017-08-07 17:13:27 -07:00
Brad Warren and GitHub
f31cb5f812
Put the minimum dep version in Google DNS setup.py ( #5002 )
2017-08-07 17:12:58 -07:00
Brad Warren and GitHub
0ac21e47c7
Use #letsencrypt-dev instead of #letsencrypt ( #4998 )
2017-08-07 17:12:49 -07:00
Brad Warren and GitHub
f68fba2be2
Fix oldest tests by pinning Google DNS deps ( #5000 )
2017-08-07 14:57:56 -07:00
Brad Warren and Peter Eckersley
d4676610e9
Unhide Nginx ( #4969 )
...
* Be careful with new interaction from enabling nginx
* Fix py3 compataibility & better docs
* Make minor changes to @pde's PR to unhide nginx
* unhide nginx plugin
* Only protect against nginx interaction in cb-auto
2017-08-07 08:36:41 -07:00
Brad Warren
6c5a8423b8
Remove unused logger from tests
2017-08-04 10:28:52 -07:00
Brad Warren
a66500ea38
Remove unused version argument.
2017-08-04 10:25:09 -07:00
Brad Warren
49cdfcec06
add six dependency
2017-08-04 10:20:36 -07:00
Brad Warren
b50a71ff4e
Remove fopen argument in favor of mock.
...
This simplifies the actual production code and is a more standard approach in
Python.
2017-08-04 10:19:46 -07:00
Brad Warren
b37be61807
Import installer module directly in tests.
2017-08-04 10:12:54 -07:00
Brad Warren
4a3fd19c93
Move parse_line to the end of installer.py
2017-08-04 10:00:04 -07:00
Brad Warren
66ba0b5276
Remove invalid permissions exception.
...
Once things like locks are added, this error shouldn't be possible as it will
have occurred earlier.
2017-08-04 09:57:44 -07:00
Brad Warren
61c2209110
Use Certbot error types in the Postfix Installer
2017-08-04 09:56:39 -07:00
Brad Warren
694746409f
s/ExistingConfigError/MisconfigurationError
2017-08-04 09:42:26 -07:00
Brad Warren
1c258c0a2c
Add basic docstrings to Installer
2017-08-04 09:31:10 -07:00
Brad Warren
6c4b3c08a7
Clean up installer imports
2017-08-04 09:30:11 -07:00
Brad Warren
c2a8ce59ae
Remove code to run the installer as on its own.
2017-08-04 09:28:22 -07:00
Brad Warren
5bf4ad1f52
Rename PostfixConfigGenerator to simply Installer
2017-08-04 09:25:12 -07:00
Brad Warren
ae08dc6bea
Fix Postfix installer tests
2017-08-04 09:24:04 -07:00