Commit Graph

8192 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
6e3ca256b9 Some refactoring to handle edge cases better, in progress. 2022-07-05 15:36:21 -04:00
Itamar Turner-Trauring
3270d24c45 Slight simplification. 2022-07-05 11:30:48 -04:00
Itamar Turner-Trauring
1e6864ac01 Typo. 2022-07-05 11:30:01 -04:00
Itamar Turner-Trauring
97d0ba23eb Switch to hypothesis-based test. 2022-07-05 11:21:46 -04:00
Itamar Turner-Trauring
249f431849 Use MonkeyPatch instead of MockPatch, since we're not mocking. 2022-07-05 11:14:52 -04:00
Itamar Turner-Trauring
451e68795c Lints, better explanation. 2022-06-30 13:54:58 -04:00
Itamar Turner-Trauring
bee46fae93 Resource limits on the client side. 2022-06-30 13:48:33 -04:00
Itamar Turner-Trauring
ab80c0f0a1 Set some length limits on various queries lengths. 2022-06-30 13:35:30 -04:00
Itamar Turner-Trauring
0e8f2aa702 More memory usage reductions. 2022-06-29 13:58:05 -04:00
Itamar Turner-Trauring
520456bdc0 Add streaming to CBOR results. 2022-06-29 11:26:25 -04:00
Itamar Turner-Trauring
efe9575d28 Nicer testing infrastructure so you don't have to switch back and forth between
sync and async test APIs.
2022-06-29 11:25:28 -04:00
Itamar Turner-Trauring
6dd2b2d583 More streaming, with tests passing again. 2022-06-27 17:00:24 -04:00
Itamar Turner-Trauring
06eca79263 Minimal streaming implementation. 2022-06-27 14:12:17 -04:00
Itamar Turner-Trauring
bfd54dc6ea Switch to newer attrs API, for consistency across the module. 2022-06-27 11:30:49 -04:00
Itamar Turner-Trauring
d37f187c07 Lint fix. 2022-06-08 13:56:23 -04:00
Itamar Turner-Trauring
db42651355 Be more consistent and just always write to the request in read_range. 2022-06-08 13:55:47 -04:00
Itamar Turner-Trauring
00381bc24f Correction now that it does more than what it did before. 2022-06-08 13:52:45 -04:00
Itamar Turner-Trauring
c3a304e1cc Lint and mypy fixes. 2022-06-06 11:04:34 -04:00
Itamar Turner-Trauring
85774ced95 Run shared tests on mutables too, with appropriate fixes to the tests and the server. 2022-06-06 10:57:19 -04:00
Itamar Turner-Trauring
e6efb62fd1 Refactor immutable tests so they can shared with mutables. 2022-06-06 10:25:06 -04:00
Itamar Turner-Trauring
797f34aec3 More tests. 2022-06-06 09:59:12 -04:00
Itamar Turner-Trauring
3e67d2d789 More tests. 2022-06-06 09:50:36 -04:00
Itamar Turner-Trauring
f1384096fa First unit test for mutables. 2022-06-03 13:46:23 -04:00
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