Itamar Turner-Trauring
cab1b02ba2
Use constants, since we have them.
2020-07-23 11:47:12 -04:00
Itamar Turner-Trauring
b0083e342b
Document being ported.
2020-07-23 11:47:06 -04:00
Itamar Turner-Trauring
31ed6b0a4f
News fragment.
2020-07-23 11:37:56 -04:00
Itamar Turner-Trauring
eb688dfd7e
Fix lint.
2020-07-22 13:22:50 -04:00
Itamar Turner-Trauring
e48aecfa1a
Move parsing tests to better location, and fix them.
2020-07-22 12:55:16 -04:00
Itamar Turner-Trauring
2f608e8216
Merge remote-tracking branch 'origin/master' into 3346.abbreviate-and-time_format-py3
2020-07-22 10:11:27 -04:00
Itamar Turner-Trauring
51e9c2183c
Add missing file.
2020-07-22 10:00:15 -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
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
5568693666
More passing tests.
2020-07-21 14:38:01 -04:00
Itamar Turner-Trauring
6de05941b9
Remove unnecessary imports.
2020-07-21 14:27:08 -04:00
Itamar Turner-Trauring
4018b772a3
Port abbreviate.py. As far as I can tell, all division is already float division.
2020-07-21 14:15:39 -04:00
Itamar Turner-Trauring
116f232e80
Port time_format to Python 3.
2020-07-21 14:08:31 -04:00
Itamar Turner-Trauring
c229ba7196
Workaround future/pypy incompatibility.
2020-07-21 13:55:53 -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
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