meejah
711f6d39e7
missing proto
2022-09-01 22:29:19 -06:00
meejah
decb36a8f6
refactor for Windows testing
2022-09-01 22:20:07 -06:00
meejah
00c785ec76
debug windows
2022-09-01 21:47:28 -06:00
meejah
768829e993
more robust
2022-09-01 21:22:45 -06:00
meejah
488a04cb9b
exit when stdin closes
2022-09-01 17:42:06 -06:00
Fon E. Noel NFEBE
7aa97336a0
Refactor FakeWebTest & MemoryConsumerTest classes
...
There are base test classes namely `SyncTestCase` and
`AsyncTestCase` which we would like all test classes in
this code base to extend.
This commit refactors two test classes to use the `SyncTestCase`
with the newer assert methods.
Signed-off-by: Fon E. Noel NFEBE <fenn25.fn@gmail.com>
2022-08-17 16:03:06 +01:00
Itamar Turner-Trauring
636b8a9e2d
Fix a bytes-vs-str bug.
2022-08-12 11:28:08 -04:00
Itamar Turner-Trauring
da8a36fac9
Improve test coverage.
2022-07-20 12:07:46 -04:00
Itamar Turner-Trauring
49dfc8445c
Implementation of getting length of shares (albeit inefficiently for now).
2022-07-18 14:12:12 -04:00
Itamar Turner-Trauring
0b5132745d
A nicer interface.
2022-07-06 09:47:08 -04:00
Itamar Turner-Trauring
fd8a385d1d
Reformat with black.
2022-07-06 09:46:59 -04:00
Itamar Turner-Trauring
dac0080ea2
Make sure we update remaining length, and update test to catch the edge case
...
this fixes.
2022-07-06 09:40:46 -04:00
Itamar Turner-Trauring
69c4dbf2b5
Fix tests and point to future work.
2022-07-05 17:17:38 -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
0e8f2aa702
More memory usage reductions.
2022-06-29 13:58:05 -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
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
8c8ea4927f
Switch to public API.
2022-05-20 11:07:55 -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
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
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
c1ce74f88d
Ability to list shares, enabling more of IStorageClient to run over HTTP.
2022-05-04 11:03:14 -04:00
Itamar Turner-Trauring
f03feb0595
TODOs for later.
2022-04-19 15:08:07 -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
186aa9abc4
Make the utility reusable.
2022-04-15 09:32:15 -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
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