Commit Graph

8169 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
fd306b9a61 Share more code across mutable and immutable reads. 2022-06-01 13:54:54 -04:00
Itamar Turner-Trauring
2313195c2b Reduce duplication. 2022-05-20 11:43:42 -04:00
Itamar Turner-Trauring
63624eedec Reduce code duplication. 2022-05-20 11:33:02 -04:00
Itamar Turner-Trauring
12927d50ba Type annotation improvements. 2022-05-20 11:10:18 -04:00
Itamar Turner-Trauring
8c8ea4927f Switch to public API. 2022-05-20 11:07:55 -04:00
Itamar Turner-Trauring
d209065a6e Fix type issue, and modernize slightly. 2022-05-16 11:22:44 -04:00
Itamar Turner-Trauring
a54b443f9d It's not an immutable client anymore. 2022-05-12 09:44:30 -04:00
Itamar Turner-Trauring
f3cf13154d Setup HTTP lease APIs for immutables too. 2022-05-11 12:00:27 -04:00
Itamar Turner-Trauring
b8735c79da Fix docstring. 2022-05-11 11:50:29 -04:00
Itamar Turner-Trauring
821bac3ddf Test another lease edge case. 2022-05-11 11:50:01 -04:00
Itamar Turner-Trauring
17fc9d0064 Merge branch '3891-mutable-http-protocol-part-2' into 3893-mutable-http-protocol-part-3 2022-05-11 11:22:03 -04:00
Itamar Turner-Trauring
457db8f992 Get rid of the "no such storage index" edge case, since it's not really necessary. 2022-05-11 11:17:57 -04:00
Itamar Turner-Trauring
4b62ec082b Match Foolscap behavior for slot_readv of unknown storage index. 2022-05-11 11:11:24 -04:00
Itamar Turner-Trauring
6d412a017c Type annotation. 2022-05-11 11:00:46 -04:00
Itamar Turner-Trauring
07e16b80b5 Better name. 2022-05-11 11:00:05 -04:00
Itamar Turner-Trauring
6f5a0e43eb Implement advise_corrupt_share for mutables. 2022-05-11 10:41:36 -04:00
Itamar Turner-Trauring
b3fed56c00 Move Foolscap compatibility to a better place. 2022-05-05 12:11:09 -04:00
Itamar Turner-Trauring
2833bec80e Unit test the new storage server backend API. 2022-05-05 12:04:45 -04:00
Itamar Turner-Trauring
06029d2878 Another end-to-end test passing (albeit with ugly implementation). 2022-05-04 11:25:13 -04:00
Itamar Turner-Trauring
852162ba06 More accurate docs. 2022-05-04 11:03:35 -04:00
Itamar Turner-Trauring
c1ce74f88d Ability to list shares, enabling more of IStorageClient to run over HTTP. 2022-05-04 11:03:14 -04:00
Itamar Turner-Trauring
5ce204ed8d Make queries run in parallel. 2022-04-28 12:18:58 -04:00
Itamar Turner-Trauring
b8b1d7515a We can at least be efficient when possible. 2022-04-28 11:59:50 -04:00
Itamar Turner-Trauring
76d0cfb770 Correct comment. 2022-04-28 11:49:21 -04:00
Itamar Turner-Trauring
e16eb6dddf Better type definitions. 2022-04-28 11:48:59 -04:00
Itamar Turner-Trauring
72c59b5f1a Unused import. 2022-04-19 15:09:02 -04:00
Itamar Turner-Trauring
f03feb0595 TODOs for later. 2022-04-19 15:08:07 -04:00
Itamar Turner-Trauring
21c3c50e37 Basic mutable read support. 2022-04-19 15:07:57 -04:00
Itamar Turner-Trauring
f5c4513cd3 A little closer to serialization and deserialization working correctly, with
some tests passing.
2022-04-19 14:46:13 -04:00
Itamar Turner-Trauring
898fe0bc0e Closer to running end-to-end mutable tests. 2022-04-19 13:18:31 -04:00
Itamar Turner-Trauring
b0d547ee53 Progress on implementing client side of mutable writes. 2022-04-18 14:56:20 -04:00
Itamar Turner-Trauring
24548dee0b Sketch of read/write APIs interface for mutables on client side. 2022-04-15 09:56:06 -04:00
Itamar Turner-Trauring
186aa9abc4 Make the utility reusable. 2022-04-15 09:32:15 -04:00
Itamar Turner-Trauring
58bd381202 Switch to newer attrs API. 2022-04-15 09:19:30 -04:00
Itamar Turner-Trauring
fc2807cccc Sketch of server-side read-test-write endpoint. 2022-04-15 09:08:16 -04:00
Jean-Paul Calderone
c0a84ececa
Merge pull request #1191 from tahoe-lafs/3526.test_invite-no-mock
Remove mock usage from test_invite

Fixes: ticket:3526
2022-04-14 12:50:17 -04:00
Itamar Turner-Trauring
4e0f912a10 Comply with license. 2022-04-14 11:52:20 -04:00
Itamar Turner-Trauring
9db5a397e1 Minor type annotation improvements. 2022-04-14 11:45:47 -04:00
Itamar Turner-Trauring
2bc8cdf852 Drop Python 2. 2022-04-14 11:40:19 -04:00
Itamar Turner-Trauring
5349f35a0b Merge remote-tracking branch 'origin/master' into 3875-http-storage-furls 2022-04-14 11:39:21 -04:00
Jean-Paul Calderone
f34e01649d some more fixes for mypy 2022-04-13 18:35:18 -04:00
Jean-Paul Calderone
03674bd452 use Tuple for type alias
__future__.annotations only fixes py37/generic builtins in annotations syntax,
not arbitrary expressions
2022-04-13 16:01:32 -04:00
Jean-Paul Calderone
38e1e93a75 factor the duplicate client logic out 2022-04-13 15:42:10 -04:00
Jean-Paul Calderone
ec5be01f38 more completely annotate types in the wormholetesting module 2022-04-13 14:50:38 -04:00
Jean-Paul Calderone
10f79ce8aa Use __future__.annotations in test_invite for generic builtins too 2022-04-13 14:39:52 -04:00
Jean-Paul Calderone
0f61a1dab9 Factor some duplication out of the test methods 2022-04-12 14:33:11 -04:00
Jean-Paul Calderone
71b5cd9e0d rewrite comment annotations with syntax 2022-04-12 14:13:48 -04:00
Jean-Paul Calderone
b0fffabed0 remove unnecessary module-scope wormhole
used this during testing so the other mock() calls wouldn't explode in a
boring way
2022-04-12 14:10:02 -04:00
Itamar Turner-Trauring
1634f137be Use sets more widely in the schema. 2022-04-12 12:54:16 -04:00
Jean-Paul Calderone
bc6dafa999 Replace monkey-patching of wormhole with a parameter to run_cli 2022-04-12 11:01:04 -04:00