Commit graph

9519 commits

Author SHA1 Message Date
Erica Portnoy
8023f28ad2 Merge branch 'refactor-tests' into test-refactor-tests 2019-11-22 18:46:53 -08:00
Erica Portnoy
be916a63af nginx http01 test no longer relies on certbot plugins common test 2019-11-22 18:30:18 -08:00
Erica Portnoy
bf2d1f74ad Merge branch 'refactor-tests' into test-refactor-tests 2019-11-22 18:16:51 -08:00
Erica Portnoy
e8857149e1 Remove unused sys and logging from main shim 2019-11-22 18:16:29 -08:00
Erica Portnoy
9a0498477f Move CHANGELOG into certbot, and create a top-level symlink 2019-11-22 18:15:10 -08:00
Erica Portnoy
30d745390a move examples directory inside certbot/ 2019-11-22 18:14:55 -08:00
Erica Portnoy
f43bd4f8c7 add certbot tests to MANIFEST.in so packagers can run python setup.py test 2019-11-22 18:10:51 -08:00
Erica Portnoy
769321e1e2 Move plugins tests to certbot tests directory 2019-11-22 17:58:44 -08:00
Erica Portnoy
3b4388a203 Update .[docs] reference in contributing.rst 2019-11-22 17:56:13 -08:00
Erica Portnoy
db6bd3834c Fix comments in readthedocs requirements files to refer to current package 2019-11-22 17:55:09 -08:00
Erica Portnoy
58e395e5d6 Merge branch 'refactor-tests' of github.com:certbot/certbot into refactor-tests 2019-11-22 17:45:26 -08:00
ohemorange
2632d4bf25
Update certbot/docs/install.rst
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-11-22 17:45:02 -08:00
Erica Portnoy
24becc5a37 add docs/api file for main, and fix up main comment 2019-11-22 17:44:41 -08:00
Erica Portnoy
e4d1121cc4 Have main shim take real arg 2019-11-22 17:42:32 -08:00
Erica Portnoy
ee37260df1 Remove cruft for running certbot directly from main 2019-11-22 17:40:35 -08:00
Erica Portnoy
68fcdbb5be Merge branch 'master' into refactor-tests 2019-11-22 17:39:08 -08:00
Brad Warren
5809aa6a2c remove unused route53 tools (#7586) 2019-11-22 22:24:51 +01:00
ohemorange
d8ca555eed Remove DNS plugin API docs. (#7578)
Replace DNS plugins' API documentation with a note that plugins adhere to certbot's plugin interface.
2019-11-22 12:58:06 -08:00
ohemorange
bd35e71b5c Remove unused certbot-compatibility-test docs (#7577)
Part of #5775. We don't use these docs anywhere, so delete them.

Removes:
- `certbot-compatibility-test/readthedocs.org.requirements.txt`
- `certbot-compatibility-test/docs/` folder
- docs include in `MANIFEST.in`
- docs dependencies in `setup.py`
2019-11-22 12:54:18 -08:00
ohemorange
70e4cb7853 Remove unused apache docs (#7575)
Part of #5775. We don't use these docs anywhere, so delete them.

Removes:
- `certbot-apache/readthedocs.org.requirements.txt`
- `certbot-apache/docs/` folder
- docs include in `MANIFEST.in`
- docs dependencies in `setup.py`
2019-11-22 12:50:01 -08:00
Erica Portnoy
ed66ca22d0 without pyargs, tests cannot be run from an empty directory 2019-11-20 16:20:07 -08:00
Erica Portnoy
14e6401efc Create public shim around main and make that the entry point 2019-11-20 14:47:38 -08:00
Erica Portnoy
7f951071dc Remove final --pyargs call, and now-unnecessary call to modules instead of local files, since that's fixed by certbot's code being one layer deeper 2019-11-18 18:51:12 -08:00
Erica Portnoy
44f128e560 Merge branch 'master' into refactor-tests 2019-11-14 16:51:24 -08:00
Erica Portnoy
f2e686577f fix paths in tools/_release.sh 2019-11-14 16:40:15 -08:00
Brad Warren
4f3010ef3f fixes #7553 (#7560) 2019-11-14 14:26:01 -08:00
Erica Portnoy
f466e62862 another stray . in tox.ini 2019-11-14 12:31:40 -08:00
Erica Portnoy
9940f0460e another stray . in tox.ini 2019-11-14 12:30:55 -08:00
Erica Portnoy
a23137318b fix up some references in _release.sh by searching for ' . ' and manual check 2019-11-13 16:36:42 -08:00
Erica Portnoy
1ff5cb5908 remove other instance of pyargs 2019-11-13 16:23:29 -08:00
Erica Portnoy
24ebf0e078 new directory format doesn't work easily with pyargs according to http://doc.pytest.org/en/latest/goodpractices.html#tests-as-part-of-application-code 2019-11-13 16:20:38 -08:00
Brad Warren
2692b862d2
Update pinned dependencies (#7558)
Fixes #7184.

I updated #7358 to track the issue of unpinning all of these dependencies.

* pin back configargparse

* Pin back zope packages.

* update deps

* Add changelog entry.

* run build.py
2019-11-13 13:44:36 -08:00
Erica Portnoy
933d2c9bb6 some package named in tox.ini were manually specified, change those to certbot 2019-11-13 12:53:18 -08:00
Erica Portnoy
3479018291 update file paths in Dockerfile 2019-11-13 12:46:54 -08:00
Erica Portnoy
45e8d353b3 Install instructions should reference an existing file 2019-11-13 12:44:43 -08:00
Erica Portnoy
d7f7aa25c4 remove outdated comment referencing a command that doesn't work 2019-11-13 12:44:12 -08:00
Erica Portnoy
f671caab7f change . to certbot in test_sdists 2019-11-13 12:43:26 -08:00
Erica Portnoy
30dfcaf09d Remove unused script cruft 2019-11-13 12:42:51 -08:00
Erica Portnoy
9338254511 Merge branch 'refactor-tests' of github.com:certbot/certbot into refactor-tests 2019-11-13 11:52:21 -08:00
Erica Portnoy
3a55210671 Merge branch 'master' into refactor-tests 2019-11-13 11:51:41 -08:00
ohemorange
4d4c83d4d8
Internalize modules called by internal plugins (#7543)
* Move hooks.py to _internal

* Move cli.py to _internal
2019-11-13 11:14:46 -08:00
Brad Warren
57148b7593
Fix shebang in rebuild_deps (#7557)
When you try to run this script, it crashes with:
```
standard_init_linux.go:211: exec user process caused "exec format error"
```
This is caused by the script being written to have the contents:
```
\
#!/bin/sh
set -e
...
```
This fixes the problem by removing the slash and moving the shebang to the first line of the string.
2019-11-13 11:14:26 -08:00
Amjad Mashaal
4a8ede2562 Deprecate certbot register --update-registration (#7556)
Closes #7452.
2019-11-13 10:24:37 -08:00
ohemorange
46d5f7a860 Move configuration.py to _internal (#7542)
Part of #5775. Methodology similar to #7528. Also refactors NGINX test util to use certbot.tests.util.ConfigTestCase.

* refactor nginx tests to no longer rely on certbot.configuration internals

* Move configuration.py to _internal
2019-11-13 10:19:27 -08:00
Adrien Ferrand
595b1b212e [Windows] Avoid letsencrypt.log permissions error during scheduled certbot renew task (#7537)
While coding for #7536, I ran into another issue. It appears that Certbot logs generated during the scheduled task execution have wrong permissions that make them almost unusable: they do not have an owner, and their ACL contains nonsense values (non existant accounts name).

The class `logging.handler.RotatingFileHandler` is responsible for these logs, and become mad when it is in a Python process run under a scheduled task owned by `SYSTEM`. This is precisely our case here.

This PR avoids (but not fix) the issue, by changing the owner of the scheduled task from `SYSTEM` to the `Administrators` group, that appears to work fine.

* Use Administrators group instead of SYSTEM to run the certbot renew task
2019-11-13 10:04:45 -08:00
Adrien Ferrand
75acdeb645 [Windows] Fix certbot renew task failure under NT AUTHORITY\SYSTEM account (#7536)
Turned out that the scheduled task that runs `certbot renew` twice a day, is failing. Without any kind of log of course, otherwise it would not be fun.

It can be revealed by opening a powershell under the `NT AUTHORITY\SYSTEM` account, under which the scheduled task is run. Under theses circumstances, the bug is revealed: Certbot breaks when trying to invoke `certbot.compat.filesystem._get_current_user()`. Indeed the logic there implied to call `win32api.GetUserNameEx(win32api.NameSamCompatible)` and this function does not return always a useful value.

For normal account, it will be typically `DOMAIN_OR_MACHINE_NAME\YOUR_USER_NAME` (e.g. `My Machine\Adrien Ferrand`). But for the account `NT AUTHORITY\SYSTEM`, it will return `MACHINE_NAME\DOMAIN$`, which is a nonsense and makes fail the resolution of the actual SID of the account at the end of `_get_current_user()`.

This PR fixes this behavior by using an explicit construction of the account name that works both for normal users and `SYSTEM`.

* Use a different way to resolve current user account, that works both for normal users and SYSTEM.

* Add a comment to run Certbot under NT AUTHORITY\SYSTEM
2019-11-13 09:43:50 -08:00
Erica Portnoy
4b9f3af406 make certbot tests directory not a package and import sibling as module 2019-11-12 20:12:30 -08:00
Erica Portnoy
4358e14dc0 certbot version has been bumped down a directory level 2019-11-12 15:40:42 -08:00
Erica Portnoy
f4ceefa21c update source_paths in tox.ini to certbot/certbot to find the right subfolder for tests 2019-11-12 15:33:44 -08:00
Erica Portnoy
f098f7ccac move testdata into the public api certbot zone 2019-11-12 15:10:02 -08:00