Commit Graph

9721 Commits

Author SHA1 Message Date
meejah
e481e37beb housekeeping 2020-07-09 16:05:29 -04:00
meejah
9d5e438c2d use real parser 2020-07-09 16:05:29 -04:00
meejah
683c8d3e4f actually returns CREATED for new data 2020-07-09 16:05:29 -04:00
meejah
b01995f158 use hypothesis -- which doesn't know about Deferred, so need testtools too 2020-07-09 16:05:29 -04:00
meejah
0cc020b5f2 copyright, header 2020-07-09 16:05:29 -04:00
meejah
1710530b6b key -> kind 2020-07-09 16:05:29 -04:00
meejah
c0ce716430 handle more inputs in test body-producer 2020-07-09 16:05:29 -04:00
meejah
1f2ad6e634 the tests are unit-tests 2020-07-09 16:05:29 -04:00
meejah
02a663c244 new-style classes only 2020-07-09 16:05:29 -04:00
meejah
18b62bf746 unused imports 2020-07-09 16:05:29 -04:00
meejah
05140a5881 simple test of testing/web 2020-07-09 16:05:29 -04:00
meejah
f216f977f0 news 2020-07-09 16:05:29 -04:00
meejah
66116020fb simplify tahoe web fakes 2020-07-09 16:05:29 -04:00
meejah
95531fa729 synchronous-only up/download tahoe code to keep treq.testing happy 2020-07-09 16:05:29 -04:00
meejah
ab7936db56 actual usable agent 2020-07-09 16:05:29 -04:00
meejah
6e2285ed2c proof-of-concept verified-fake for testing 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
1fd220dba0 Update newsfragment text 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
b956d9a58c Decode name before null check
Make the diff against master a tad bit smaller.
2020-07-09 16:05:29 -04:00
Sajith Sasidharan
fccc331671 Make "Refresh" link work
This seems to be a subtle difference from nevow: with `href="."`,
rendered link target will be `/uri/`, so clicking "Refresh" will
result in an error message like so: "GET /uri requires uri=".

With `href=""`, the rendered link target will be `/uri/URI:...`, which
is what we need.
2020-07-09 16:05:29 -04:00
Sajith Sasidharan
378b20c51a Reject trailing empty path piece in URIs 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
d3d0d02855 Reject URIs that contain empty segments 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
83b5807ca1 Add newsfragment 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
5892eae580 Render self in DirectoryNodeHandler.getChild()
We need self.render_POST() etc. to be invoked when we have a request
such as "POST /uri/URI:DIR:..."; throwing an error here is probably
not the right thing to do.
2020-07-09 16:05:29 -04:00
Sajith Sasidharan
7444d6b7a9 Correct arguments to super()
This was incidentally found when looking at some test failures:
super(type, object) is the right invocation, and not the other way
around.
2020-07-09 16:05:29 -04:00
Sajith Sasidharan
88accc23c3 Update newsfragment 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
c043d1bead Add newsfragment 2020-07-09 16:05:29 -04:00
Sajith Sasidharan
4dd6c86950 Use twisted web directives in web.operations.ReloadMixin 2020-07-09 16:05:28 -04:00
Sajith Sasidharan
2e160c1526 Test for failure caused by invalid path
A hyphen is expected when rendering /status page child nodes:
"/status/up" is wrong; "/status/up-0" is right.
2020-07-09 14:37:37 -04:00
Sajith Sasidharan
54248f334e Use WebError, not RuntimeError, to indicate error
Several problems with using RuntimeError to signal error here:

- It dumps a rather unhelpful webpage at the user.
- The exception backtrace on Tahoe console is not quite necessary here.
- It really is not a runtime error: it is just an expected failure.
- But mainly, testing for RuntimeError is harder.
2020-07-09 14:35:14 -04:00
Itamar Turner-Trauring
354e994f6d
Merge pull request #733 from tahoe-lafs/3324-humanreadable-python-3
Port humanreadable.py to Python 3
2020-07-08 17:53:40 -04:00
Itamar Turner-Trauring
28f219ad3e Update to version that supports _python3.py variant of port list. 2020-07-08 16:46:54 -04:00
Itamar Turner-Trauring
98c8b2fd00 Revert changes obsoleted by #3338. 2020-07-08 14:53:38 -04:00
Itamar Turner-Trauring
e4b8cc4fbd Merge remote-tracking branch 'origin/master' into 3324-humanreadable-python-3 2020-07-08 14:52:24 -04:00
Itamar Turner-Trauring
834c7b4d06
Merge pull request #738 from tahoe-lafs/3338.future-0-18-2
Provide future 0.18.2 for the Nix builds
2020-07-08 14:50:42 -04:00
Jean-Paul Calderone
7e16148f83
news fragment 2020-07-08 13:20:42 -04:00
Jean-Paul Calderone
1cbf798127
Package Future 0.18.2 for us 2020-07-08 13:20:07 -04:00
Itamar Turner-Trauring
3d80a6c17e New packages so we can get future 0.18.2. 2020-07-08 10:11:28 -04:00
Itamar Turner-Trauring
3d0e4df5ce Lint fixes. 2020-07-07 11:30:01 -04:00
Itamar Turner-Trauring
238b17098e Add future in another place. 2020-07-07 11:28:11 -04:00
Itamar Turner-Trauring
e6268f3dd5 Add additional dependencies. 2020-07-07 11:13:45 -04:00
Itamar Turner-Trauring
e06d41442a Merge remote-tracking branch 'origin/master' into 3324-humanreadable-python-3 2020-07-07 11:03:33 -04:00
Jean-Paul Calderone
bb452a6c60
Merge pull request #731 from tahoe-lafs/2755.code-of-conduct
Formally adopt a code of conduct.
2020-07-07 09:59:55 -04:00
Jean-Paul Calderone
f08e2ba832
add some alt text 2020-07-07 09:19:30 -04:00
Jean-Paul Calderone
0ed8a7709e
Perhaps this is the preferred formatting? 2020-07-07 09:18:11 -04:00
Itamar Turner-Trauring
10f2b7fc53
Merge pull request #736 from tahoe-lafs/3329-flake8
Switch to flake8 as a better way of running pyflakes.
2020-07-06 17:15:51 -04:00
Sajith Sasidharan
25f5e659fc
Merge pull request #721 from sajith/3287.status-upload-nevow-to-twisted-web
Replace nevow with twisted.web.template in status.UploadStatusPage

Fixes: ticket:3287
2020-07-06 16:20:40 -04:00
Sajith Sasidharan
61aef4caef
Merge pull request #690 from sajith/3247.storage-py-neovw-to-twt
Use twisted.web.template in web/storage.py

Fixes: ticket:3247
2020-07-06 16:18:34 -04:00
Jean-Paul Calderone
4e1f581540
Merge pull request #737 from tahoe-lafs/2755.code-of-conduct--add-meejah
add meejah to code-of-conduct
2020-07-06 16:06:40 -04:00
meejah
b9737febd0 add meejah to code-of-conduct 2020-07-06 13:49:07 -06:00
Itamar Turner-Trauring
f548593f37 Fix test_python3, and mark these two modules as being ported as well. 2020-07-06 14:18:18 -04:00