Jean-Paul Calderone
1acf8604ef
Remove the Py2/Py3 compatibility header
2022-11-30 09:30:08 -05:00
Jean-Paul Calderone
5cebe91406
update the module docstring
2022-11-30 09:29:57 -05:00
Jean-Paul Calderone
4367e5a0fc
Bump the Twisted dependency so we can do this
2022-11-30 09:28:58 -05:00
Jean-Paul Calderone
6c0e5f5807
news fragment
2022-11-29 10:52:02 -05:00
Jean-Paul Calderone
02aeb68f17
Take care with str vs bytes in the implementation
...
Also replace the intentional BAD_REQUEST with GONE for this case.
2022-11-29 10:51:07 -05:00
Jean-Paul Calderone
d7fe25f7c7
Correct the assertion about how "not found" should be handled
...
Behavior verified visually against a live client node:
```
❯ curl -v 'http://localhost:3456/uri/URI:CHK:cmtcxq7hwxvfxan34yiev6ivhy:qvcekmjtoetdcw4kmi7b3rtblvgx7544crnwaqtiewemdliqsokq:1:1:1 '
* Trying 127.0.0.1:3456...
* Connected to localhost (127.0.0.1) port 3456 (#0 )
> GET /uri/URI:CHK:cmtcxq7hwxvfxan34yiev6ivhy:qvcekmjtoetdcw4kmi7b3rtblvgx7544crnwaqtiewemdliqsokq:1:1:1 HTTP/1.1
> Host: localhost:3456
> User-Agent: curl/7.83.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 410 Gone
< X-Frame-Options: DENY
< Referrer-Policy: no-referrer
< Server: TwistedWeb/22.10.0
< Date: Tue, 29 Nov 2022 15:39:47 GMT
< Content-Type: text/plain;charset=utf-8
< Accept-Ranges: bytes
< Content-Length: 294
< ETag: ui2tnwl5lltj5clzpyff42jdce-
<
NoSharesError: no shares could be found. Zero shares usually indicates a corrupt URI, or that no servers were connected, but it might also indicate severe corruption. You should perform a filecheck on this object to learn more.
The full error message is:
* Connection #0 to host localhost left intact
no shares (need 1). Last failure: None
```
2022-11-29 10:49:20 -05:00
Jean-Paul Calderone
57f13a2472
news fragment
2022-11-29 10:20:13 -05:00
Jean-Paul Calderone
920467dcea
Treat missing Authorization as the same as empty Authorization
2022-11-29 10:19:01 -05:00
Jean-Paul Calderone
f5b24d51e9
Add a test for missing Authorization
2022-11-29 10:18:57 -05:00
Sajith Sasidharan
1bb3267b6a
Merge remote-tracking branch 'origin/master' into 3944.github-actions-updates
2022-11-28 10:12:24 -06:00
Itamar Turner-Trauring
06b57cd835
Merge remote-tracking branch 'origin/master' into 3939-faster-http-protocol
2022-11-28 11:07:01 -05:00
Itamar Turner-Trauring
66283ade3b
Merge remote-tracking branch 'origin/master' into 3937-integration-http-storage
2022-11-28 11:06:05 -05:00
Itamar Turner-Trauring
ac994420bd
Merge pull request #1227 from tahoe-lafs/3940-http-timeouts
...
Add http storage timeouts
Fixes ticket:3940
2022-11-28 11:03:50 -05:00
Itamar Turner-Trauring
aa80c9ef47
Be more robust.
2022-11-28 10:21:59 -05:00
Itamar Turner-Trauring
3ba166c2cb
A bit more robust code.
2022-11-28 10:20:12 -05:00
Itamar Turner-Trauring
0f4dc91295
Refactor so internal attributes needn't leak.
2022-11-28 10:12:08 -05:00
Itamar Turner-Trauring
38d7430c57
Simplify.
2022-11-28 10:03:42 -05:00
Itamar Turner-Trauring
2ab8e3e8d2
Cancel timeout on failures too.
2022-11-28 10:02:56 -05:00
Sajith Sasidharan
7715972429
Use newer version of crazy-max/ghaction-chocolatey
2022-11-26 18:41:24 -06:00
Sajith Sasidharan
26d30979c0
Use newer version of actions/upload-artifact
2022-11-26 18:41:23 -06:00
Sajith Sasidharan
15881da348
Use newer version of actions/checkout
2022-11-26 18:41:23 -06:00
Sajith Sasidharan
23d8d1cb01
Use action/setup-python@v4's caching feature
2022-11-26 18:41:23 -06:00
Sajith Sasidharan
5e6189e115
Use newer version of actions/setup-python
2022-11-26 18:41:13 -06:00
Sajith Sasidharan
9bd384ac2d
Add news fragment
2022-11-26 18:18:44 -06:00
Sajith Sasidharan
562111012e
Give GITHUB_TOKEN just enough permissions to run the workflow
2022-11-26 18:18:05 -06:00
Fon E. Noel NFEBE
6b0fa64236
Clean up test_storage.py after refactor
...
This PR cleans up errorneous changes resulting from
1d85a2c5cf
and adds a
few improvements such as calling `super` implementations.
Making sure classes with functions returning deferreds
use `AsyncTestCase`
Signed-off-by: Fon E. Noel NFEBE <fenn25.fn@gmail.com>
2022-11-25 13:36:22 +01:00
Itamar Turner-Trauring
41533f162e
Not used anymore.
2022-11-23 10:20:32 -05:00
Itamar Turner-Trauring
3790280264
Documentation.
2022-11-23 10:16:49 -05:00
Itamar Turner-Trauring
fd9e50adf1
Simplify _WriteBuffer slightly.
2022-11-23 10:13:18 -05:00
Itamar Turner-Trauring
d1deda5fdd
Unit tests for _WriteBuffer.
2022-11-23 10:09:53 -05:00
Itamar Turner-Trauring
6c3e9e670d
Link to issue.
2022-11-23 09:53:11 -05:00
Itamar Turner-Trauring
7f1d7d4f46
Better explanation.
2022-11-23 09:53:07 -05:00
Itamar Turner-Trauring
4fd92a915b
Install tor on any ubuntu version.
2022-11-23 09:43:45 -05:00
Itamar Turner-Trauring
62400d29b3
Seems like Ubuntu 22.04 has issues with Tor at the moment
2022-11-23 09:36:53 -05:00
Itamar Turner-Trauring
d86d578034
Refactor to make core data structure easier to test in isolation.
2022-11-22 15:17:56 -05:00
Itamar Turner-Trauring
f638aec0af
Refactor to use BytesIO.
2022-11-22 14:22:54 -05:00
Itamar Turner-Trauring
a4787ca45e
Batch writes much more aggressively.
2022-11-22 14:12:14 -05:00
Itamar Turner-Trauring
c296071767
News file.
2022-11-22 14:11:58 -05:00
Itamar Turner-Trauring
c80469b50b
Handle the Windows waker too.
2022-11-22 11:55:56 -05:00
Itamar Turner-Trauring
3a613aee70
Try a different approach to timeouts: dynamic, instead of hardcoded.
2022-11-21 12:24:50 -05:00
Fon E. Noel NFEBE
1d85a2c5cf
Refactor more test_storage.py classes
...
As a follow up to commit fbc8baa238
this refactor continues to remove deprecated methods and ensures
test classes either extend `SyncTestCase` or `AsyncTestCase`
Classes refactored:
- `MutableServer`
- `MDMFProxies`
- `Stats`
- `MutableShareFileTests`
Signed-off-by: Fon E. Noel NFEBE <fenn25.fn@gmail.com>
2022-11-20 15:38:08 +01:00
Fon E. Noel NFEBE
4c18890e84
Merge branch 'master' into 3917-refactor-test-storage-py
2022-11-19 23:35:59 +01:00
Itamar Turner-Trauring
8cfdae2ab4
sigh
2022-11-18 15:26:02 -05:00
Itamar Turner-Trauring
aeaced848d
Merge remote-tracking branch 'origin/master' into 3940-http-timeouts
2022-11-18 15:25:44 -05:00
Itamar Turner-Trauring
4c0c75a034
Fix DelayedCall leak in tests.
2022-11-18 13:56:54 -05:00
Itamar Turner-Trauring
709ea62f62
Merge remote-tracking branch 'origin/master' into 3937-integration-http-storage
2022-11-17 12:26:02 -05:00
Itamar Turner-Trauring
4c8e8a74a4
Not needed.
2022-11-17 12:25:37 -05:00
Itamar Turner-Trauring
ac524a3077
Merge pull request #1225 from tahoe-lafs/3783-storage-client-http
...
Make storage_client support HTTP
Fixes ticket:3783
2022-11-17 12:19:54 -05:00
Itamar Turner-Trauring
9b21f1da90
Increase how many statuses are stored.
2022-11-17 11:35:10 -05:00
Itamar Turner-Trauring
d182a2f186
Add the delay to appropriate test.
2022-11-17 11:01:12 -05:00