Commit Graph

9893 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
ff0ffb8040 Merge remote-tracking branch 'origin/master' into 3344.netstring-and-hashutil-to-python-3 2020-07-23 11:30:23 -04:00
Sajith Sasidharan
46b44b43dc
Merge pull request #730 from sajith/3320.github-actions-windows-integration-tests
Run integration tests on Windows using GitHub Actions

Fixes: ticket:3320
2020-07-22 13:05:53 -04:00
Itamar Turner-Trauring
3a8bafafc3 Merge remote-tracking branch 'origin/master' into 3344.netstring-and-hashutil-to-python-3 2020-07-22 09:36:34 -04:00
Itamar Turner-Trauring
bca0b17e80
Merge pull request #744 from tahoe-lafs/3342-base32-and-base62-to-python-3
Port base32 and base62 to Python 3
2020-07-22 09:35:56 -04:00
Sajith Sasidharan
7f5643a096 Add note on Tor integration test failures on Windows 2020-07-21 14:59:04 -04:00
Itamar Turner-Trauring
fa567841b5 Merge remote-tracking branch 'origin/master' into 3342-base32-and-base62-to-python-3 2020-07-21 14:40:33 -04:00
Itamar Turner-Trauring
7e8de10ea3 Merge branch '3342-base32-and-base62-to-python-3' into 3344.netstring-and-hashutil-to-python-3 2020-07-21 14:00:53 -04:00
Itamar Turner-Trauring
c229ba7196 Workaround future/pypy incompatibility. 2020-07-21 13:55:53 -04:00
Sajith Sasidharan
74a77a48cc Merge 'origin/master' into 3320.github-actions-windows-integration-tests 2020-07-21 13:50:47 -04:00
Sajith Sasidharan
4d20f8447c
Merge pull request #749 from sajith/3348.tor-chutney-integration-tests-python2
Use a Chutney revision that works with Python 2

Fixes: ticket:3348
2020-07-21 13:44:15 -04:00
meejah
65c367bf2d
Merge pull request #748 from meejah/3349.rsa-exponent
public RSA exponent 17 -> 65537
2020-07-21 16:56:27 +00:00
Sajith Sasidharan
957e089715 Fix typo 2020-07-21 11:56:44 -04:00
meejah
8cdfcb1c24 news 2020-07-21 09:40:06 -06:00
Sajith Sasidharan
e4e59c7aab Use a Chutney revision that works with Python 2 2020-07-21 10:44:49 -04:00
meejah
30a91a1106 public RSA exponent 17 -> 65537 2020-07-21 00:29:35 -06:00
Sajith Sasidharan
e145c7b00d
Merge pull request #722 from sajith/3254.status-status-nevow-to-twisted-web
Replace nevow with twisted.web.template in status.Status

Fixes: ticket:3254
2020-07-20 11:28:18 -04:00
Jean-Paul Calderone
52e745afac
Merge pull request #746 from tahoe-lafs/3330.remove-some-travis-config
Remove some TravisCI configuration

Fixes: ticket:3330
Fixes: ticket:3331
Fixes: ticket:3332
Fixes: ticket:3333
Fixes: ticket:3334
Fixes: ticket:3335
2020-07-20 11:13:21 -04:00
Sajith Sasidharan
9e82df4fa7 Use skipif decorator to omit Tor integration test setup on Windows 2020-07-19 09:19:19 -04:00
Sajith Sasidharan
26ca9ae724
Merge pull request #726 from sajith/3313.operations-ophandle-table-nevow-to-twisted
Replace nevow with twisted.web in operations.OphandleTable

Fixes: ticket:3313
2020-07-19 08:14:32 -04:00
Sajith Sasidharan
c58cf56e83 Remove unused imports 2020-07-18 08:34:25 -04:00
Sajith Sasidharan
0f835e94f5 Merge 'origin/master' into 3254.status-status-nevow-to-twisted-web 2020-07-18 07:53:36 -04:00
Sajith Sasidharan
6dec821271
Merge pull request #720 from sajith/3288.status-download-nevow-to-twisted-web
Replace nevow with twisted.web.template in status.DownloadStatusPage

Fixes: ticket:3288
2020-07-18 07:22:37 -04:00
Sajith Sasidharan
879a8012a0 Remove unused import 2020-07-18 06:48:36 -04:00
Sajith Sasidharan
c198c006e3 Avoid over-long lines 2020-07-17 21:02:24 -04:00
Sajith Sasidharan
fe07ab39da Use docstrings 2020-07-17 16:22:23 -04:00
Sajith Sasidharan
c14197e1bc Make FakeDownloadStatus an instance of DownloadStatus
The real DownloadStatus is easy enough to instantiate.  Might as well
use that, cutting some crufty code here.
2020-07-17 16:13:07 -04:00
Sajith Sasidharan
aab598c2f5 Update integration test for status page
As a fallout of transition from nevow to twisted web, list of hrefs in
the parsed status page will be [u'/status/down-0', u'/status/up-0',
u'/'] (with an added '/status/' prefix) so we need to update our
assumptions.

See 5c886b1b2 for the change that necessitated this.
2020-07-17 15:19:06 -04:00
Sajith Sasidharan
293efd7c9f Use actual status counter number when testing 2020-07-17 13:50:06 -04:00
Sajith Sasidharan
8fd0cf7eb6 Add a test for checking status page links 2020-07-17 13:21:53 -04:00
Sajith Sasidharan
828ec53e24 Update status page test case
Link to upload status 0 should contain `/status/` prefix, or it will
navigate to `/up-0` instead of `/status/up-0`, resulting in a 404 not
found message.  Same with other statuses too.
2020-07-17 13:21:53 -04:00
Sajith Sasidharan
5c886b1b2d Format link to status page child node correctly
Some Nevow-ism accidentally escaped earlier: link to `/status/up-0`
and so on were actually rendered as `/up-0` and so on.
2020-07-17 13:21:53 -04:00
Sajith Sasidharan
2d19c383ca Rename a variable for clarity 2020-07-17 13:21:53 -04:00
Sajith Sasidharan
02d8bd061a Test for trailing slashes after /status/
Both `/status` and `/status/` are treated alike; any additional
trailing slashes will be rejected.
2020-07-17 13:21:53 -04:00
Jean-Paul Calderone
cfe7033568
Remove obsolete supporting configuration
There are no longer any macOS jobs.  Delete the macOS checks.
There are no longer any coverage jobs.  Delete codecov hook.
There are no longer any pyinstaller jobs.  Delete extra pyinstaller check.
2020-07-17 12:49:12 -04:00
Jean-Paul Calderone
16c8026b6d
Stop using TravisCI for pyinstaller/Linux test coverage 2020-07-17 12:46:23 -04:00
Jean-Paul Calderone
1b491f293a
Stop using TravisCI for codechecks/Linux test coverage 2020-07-17 12:45:50 -04:00
Jean-Paul Calderone
82a4fca416
Stop using TravisCI for coverage/Linux test coverage 2020-07-17 12:45:05 -04:00
Jean-Paul Calderone
0803aef1cb
Stop using TravisCI for pyinstaller/macOS test coverage 2020-07-17 12:44:19 -04:00
Jean-Paul Calderone
f3780cd4cb
Stop using TravisCI for Python 2.7/macOS test coverage 2020-07-17 12:43:39 -04:00
Jean-Paul Calderone
c942064ee0
Stop using TravisCI for Python 2.7/Linux test coverage 2020-07-17 12:42:41 -04:00
Sajith Sasidharan
372cc00a25 Reject non-existent child nodes of /status
Requests on both `/status` and `/status/` will be served with the same
status page, but `/status//`, `/status///` and so on will be processed
further down, resulting in a 40x response.
2020-07-17 09:46:21 -04:00
Sajith Sasidharan
fe165cc99d Do the right thing, not the simple thing
Seems that NixOS CI is saying that the simple thing is not the right
thing: "GET /status/down-0" etc all resulted in 404 responses on
NixOS.  So we perhaps should use the actual counter value.
2020-07-16 19:07:51 -04:00
Sajith Sasidharan
06c8bbfb19 Use clearer names for tests 2020-07-16 17:25:25 -04:00
Sajith Sasidharan
66dd2d3658 Use docstrings 2020-07-16 17:19:50 -04:00
Sajith Sasidharan
8db60e3486 Do the simple thing when testing status subpaths 2020-07-16 17:16:18 -04:00
Sajith Sasidharan
95642ae02c Use a helper to check status subpath results 2020-07-16 17:13:36 -04:00
Sajith Sasidharan
e48d930621 Clarify intention of a test case 2020-07-16 16:56:41 -04:00
Sajith Sasidharan
6a2ce9efc6 Use docstrings 2020-07-16 16:55:12 -04:00
Itamar Turner-Trauring
e77ab46549 Correct type. 2020-07-16 15:28:39 -04:00
Itamar Turner-Trauring
554be90b7e Unnecessary code, and was triggering flake8. 2020-07-16 15:27:36 -04:00