Commit graph

302 commits

Author SHA1 Message Date
Brad Warren
5c4af9df45 Merge branch 'killpy26' into fix-rebootstrap-test 2018-01-05 18:38:09 -08:00
Erica Portnoy
1d3141ee71 Add tests to centos6 Dockerfile to make sure we install python3 if and only if appropriate to do so. 2018-01-05 16:25:41 -08:00
Brad Warren
a55b08bdeb Fix rebootstrapping before venv move 2018-01-05 15:50:23 -08:00
Erica Portnoy
007383d8f2 add documentation for YES_FLAG and QUIET_FLAG 2018-01-04 12:19:22 -08:00
Erica Portnoy
835e4c051c address review comments 2018-01-03 19:00:58 -08:00
Erica Portnoy
7344bb3d55 remove commented out code 2018-01-03 11:29:17 -08:00
Erica Portnoy
21a56b3910 build 2018-01-03 11:25:20 -08:00
Erica Portnoy
6c18b5b03d typo 2018-01-03 11:24:45 -08:00
Erica Portnoy
0e2b86d828 Use SSLContext and an environment variable so that our tests continue to never verify server certificates. 2018-01-03 11:21:38 -08:00
Erica Portnoy
b11dec0fd0 Merge branch 'master' into killpy26 2018-01-02 17:05:08 -08:00
Erica Portnoy
5a58af7e2e don't verify server certificates in fetch.py HttpsGetter 2018-01-02 16:29:18 -08:00
Brad Warren
ed2168aaa8 Fix auto_tests on systems with new bootstrappers (#5348) 2017-12-21 16:55:21 -08:00
Erica Portnoy
80ef7c6ad9 get fetch.py working with python2 and 3 2017-12-21 15:52:12 -08:00
Erica Portnoy
173c8199c7 python3ify fetch.py 2017-12-21 15:23:40 -08:00
Erica Portnoy
48f0cf131e switch to LE_PYTHON not affecting bootstrap selection and not overwriting LE_PYTHON 2017-12-21 14:18:32 -08:00
Erica Portnoy
c5102f10c7 use built-in venv for py3 2017-12-21 13:58:57 -08:00
Erica Portnoy
07975a5553 replace NOCRASH, update LE_PYTHON set logic 2017-12-20 17:14:05 -08:00
Erica Portnoy
eed279c8f2 rip out NOCRASH 2017-12-20 16:54:42 -08:00
Erica Portnoy
f23dc97f41 set USE_PYTHON_3 for all cases 2017-12-20 16:46:24 -08:00
Erica Portnoy
48cbaf29c2 fix syntax errors 2017-12-20 16:16:38 -08:00
Erica Portnoy
6b5100d3db Merge branch 'master' into killpy26 2017-12-20 13:48:08 -08:00
Erica Portnoy
dd52dfaa98 build leauto 2017-12-19 20:59:54 -08:00
Erica Portnoy
4076ae75fb close brace 2017-12-19 20:53:02 -08:00
Erica Portnoy
85025026ff build letsencrypt-auto 2017-12-19 20:30:39 -08:00
Erica Portnoy
2b2b93feac document DeterminePythonVersion parameters 2017-12-19 20:04:19 -08:00
Erica Portnoy
a2c1e4b2fc add no python error and exit 2017-12-19 19:59:50 -08:00
Erica Portnoy
694d7b1522 fix up python version return value when no python installed 2017-12-19 19:52:59 -08:00
Erica Portnoy
533b45c66b factor out all initialization code 2017-12-19 19:40:01 -08:00
Erica Portnoy
defd06b4b2 address style, documentation, nits 2017-12-18 14:52:45 -08:00
Brad Warren
1b6005cc61
Pin josepy in letsencrypt-auto (#5321)
* pin josepy in le-auto

* Put pinned versions in sorted order
2017-12-14 18:15:42 -08:00
Erica Portnoy
f60ff9691b Always check for python2.6 2017-12-14 16:21:53 -08:00
Erica Portnoy
dee46d8d71 If there's no python or there's only python2.6 on red hat systems, install python3 2017-12-12 18:07:03 -08:00
Brad Warren
78d97ca023 Bump version to 0.21.0 2017-12-06 14:52:16 -08:00
Brad Warren
f1554324da
Release 0.20.0 2017-12-06 14:46:55 -08:00
Brad Warren
bb70962bb8
Stop using new mock functionality in tests (#5295)
* Remove assert_called_once from dns-route53

* Remove assert_called_once from main_test.py

* Remove assert_called() usage in dns-digitalocean

* Remove assert_called() usage in dns-route53

* Downgrade mock version in certbot-auto
2017-12-04 14:44:22 -08:00
Brad Warren
48173ed1cb
Switch from nose to pytest (#5282)
* Use pipstrap to install a good version of pip

* Use pytest in cb-auto tests

* Remove nose usage in auto_test.py

* remove nose dev dep

* use pytest in test_tests

* Use pytest in tox

* Update dev dependency pinnings

* remove nose multiprocess lines

* Use pytest for coverage

* Use older py and pytest for old python versions

* Add test for Error.__str__

* pin pytest in oldest test

* Fix tests for DNS-DO plugin on py26

* Work around bug for Python 3.3

* Clarify dockerfile comments
2017-12-01 10:59:55 -08:00
yomna
f962b5c83d Forcing pip to use https on older docker images (#5214) 2017-10-31 12:52:40 -07:00
Brad Warren
13b4a4e1c2 Bump version to 0.20.0 2017-10-04 15:57:16 -07:00
Brad Warren
1f258449a4
Release 0.19.0 2017-10-04 12:11:20 -07:00
Brad Warren
cad7d4c8ed Update master to reflect 0.18.2 (#5127)
* Release 0.18.2

(cherry picked from commit d031c42b98)

* Bump version to 0.19.0
2017-09-27 16:02:40 -07:00
Brad Warren
6aabb31eb5 Merge pull request #5118 from erikrose/certbot-auto-timeout
Certbot auto timeout
2017-09-18 15:56:26 -07:00
Erik Rose
e7884898ec Simplify and stop repeating knowledge by hard-coding timeout into HttpsGetter.get().
Also, switch timeout to 30 so it has every opportunity to actually work, even in bad network weather. (I posit that people are used to 30-second timeouts.)

Stop catching URLError explicitly, since it's a subclass of the already-caught IOError.
2017-09-18 09:55:16 -04:00
Chris J
9be4fedeec Add timeout to certbot-auto HTTPS fetches. Fix #4473. 2017-09-18 09:52:17 -04:00
Brad Warren
7d0a77ffcf Release 0.18.1 (#5093)
* Release 0.18.1

(cherry picked from commit 8010822a0b)

* Bump version to 0.19.0
2017-09-14 17:32:45 -07:00
Brad Warren
82d0ff1df2 Fix permissions error when upgrading certbot-auto. (#5086)
Now we always check if we have root access if --cb-auto-has-root is not given
on the command line. This allows certbot-auto to properly acquire root when
upgrading from an older version. People upgrading from 0.18.0 to 0.18.1 may
check for root access twice, however, if root's user ID is 0, this check is
essentially a noop. If root's user ID is not 0, we'll request root access a 2nd
time during this upgrade.
2017-09-07 17:23:57 -07:00
Brad Warren
a7267b0fcd Bump version to 0.19.0 2017-09-05 16:07:03 -07:00
Brad Warren
756c44f7af
Release 0.18.0 2017-09-05 16:06:43 -07:00
Brad Warren
a5fae7eab5 certbot-auto OS dependency update system (#4971)
* Add version number to bootstrap scripts.

* Always determine Bootstrap function and version.

* Write bootstrap version into venv.

* Add PrevBootstrapVersion function.

* Add OS bootstrapping check to phase 2.

* Differentiate -n and renew when rebootstrapping.

* Quote all environment variables.

* Correct test condition

* Add loud warning about hardcoded version list.

* s/VENV_BOOTSTRAP_VERSION/BOOTSTRAP_VERSION_PATH

* Properly handle noop bootstrap functions.
2017-08-23 11:01:20 -07:00
Brad Warren
56db211367 Change certbot-auto's installation path to /opt (#4970)
* Update comment about root usage.

* run all of certbot-auto as root

* remove other $SUDO uses from template

* remove $SUDO usage from bootstrappers

* default venv path = /opt/eff.org/certbot/venv

* Create symlinks from old default venvs

* Delete old venv path when it exists.

Also, quote expansion of paths.

* fix typo

* Separate venv_dir and le_auto_path

* Deduplicate code with test_dirs()

* Ignore cleanup errors.

This is caused by subdirectories being owned by root.

* Split test into test_phase2_upgrade.

* Rename test_dirs to temp_paths for clarity.

* Check both venvs before bootstrapping again.

* Use OLD_VENV_PATH/bin

* Preserve environment with sudo.

* Remove "esp. under sudo" comment.

* Export *VENV_PATH.

* Change check for OLD_VENV installation.

This approach better handles manually set VENV_PATH values.

* Remove SUDO_ENV.

* Print message before requesting root privileges.

* Make a function for selecting root auth method.

* Address @erikrose's feedback.
2017-08-21 12:23:09 -07:00
Bob Strecansky
5e58580d13 [#4966] - Fedora 26 doesn't have development tools handy (#4997) 2017-08-09 09:12:36 -07:00