Jean-Paul Calderone
90d1e90a14
rewrite the Eliot interaction tests to make expected behavior clearer
...
and to have explicit assertions about that behavior
2021-12-01 15:05:29 -05:00
meejah
940c6343cf
consistency
2021-12-01 12:02:42 -07:00
meejah
7080ee6fc7
oops
2021-12-01 12:02:06 -07:00
meejah
25ca767095
an offering to the windows godesses
2021-12-01 11:49:52 -07:00
Itamar Turner-Trauring
f7975b9772
Merge pull request #1161 from tahoe-lafs/3843-start-http-storage-server
...
A start at a HTTP-based storage server and client
Fixes ticket:3843
Fixes ticket:3762
2021-12-01 10:18:36 -05:00
Itamar Turner-Trauring
6e1f6f68ca
Merge branch '3843-start-http-storage-server' into 3849-refactor-out-foolscap-in-storage-server
2021-12-01 09:41:21 -05:00
Itamar Turner-Trauring
18a5966f1d
Don't bother running HTTP server tests on Python 2, since it's going away any
...
day now.
2021-12-01 09:38:56 -05:00
meejah
85fa8fe32e
py2/py3 glue code for json dumping
2021-11-30 23:00:59 -07:00
meejah
b47381401c
flake8
2021-11-30 19:01:09 -07:00
meejah
679c464517
tests
2021-11-30 18:43:06 -07:00
meejah
fc9671a812
simplify, flake9
2021-11-30 18:25:32 -07:00
meejah
0a4bc385c5
fix tests to use migrate command
2021-11-30 18:00:58 -07:00
Jean-Paul Calderone
c1a2964788
Merge remote-tracking branch 'origin/master' into 3527.test_create-no-mock
2021-11-30 15:06:17 -05:00
Jean-Paul Calderone
7626a02bdb
remove redundant assertion
2021-11-29 13:43:27 -05:00
Jean-Paul Calderone
3eb1a5e7cb
Add a MemoryLogger that prefers our encoder
...
and use it instead of Eliot's
2021-11-29 13:43:27 -05:00
Jean-Paul Calderone
f40da7dc27
Put the choice of JSON encoder for Eliot into its own module
...
and use it in a few places
2021-11-29 13:43:27 -05:00
Jean-Paul Calderone
66a0c6f3f4
add a direct test for the non-utf-8 bytestring behavior
2021-11-29 13:43:27 -05:00
Jean-Paul Calderone
c02d8cab3a
change one more assertTrue to assertEquals
2021-11-29 08:56:05 -05:00
fenn-cs
118e323b9e
Merge branch 'master' of github.com:tahoe-lafs/tahoe-lafs into 3788.refactor-src.test.mutable
2021-11-27 00:59:50 +01:00
fenn-cs
54c032d0d7
change assertTrue -> assertEquals for non bools
...
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-11-27 00:59:13 +01:00
meejah
b0309331a5
Merge branch 'master' into 3825.json-pickle
2021-11-23 13:53:41 -07:00
Itamar Turner-Trauring
c341a86abd
Correct the comment.
2021-11-23 10:01:03 -05:00
Jean-Paul Calderone
e0c0c32c13
Merge remote-tracking branch 'remediate/master' into LFS-01-010.mutable
2021-11-22 07:59:43 -05:00
Jean-Paul Calderone
04e45f065a
document compare_leases_without_timestamps
2021-11-22 07:59:01 -05:00
Itamar Turner-Trauring
4c11177387
Fix a problem with typechecking.
...
Using remote_write() isn't quite right given move to HTTP, but can fight that
battle another day.
2021-11-18 15:58:55 -05:00
Itamar Turner-Trauring
bd645edd9e
Fix flake.
2021-11-18 15:44:51 -05:00
Itamar Turner-Trauring
1827faf36b
Fix issue with leaked-past-end-of-test DelayedCalls.
2021-11-18 14:45:44 -05:00
Itamar Turner-Trauring
8c8e377466
Implement timeout and corresponding tests.
2021-11-18 14:35:04 -05:00
Itamar Turner-Trauring
5e341ad43a
New tests to write.
2021-11-17 11:29:34 -05:00
Itamar Turner-Trauring
45c00e93c9
Use clock in BucketWriter.
2021-11-17 11:12:40 -05:00
Itamar Turner-Trauring
92c36a67d8
Use IReactorTime instead of ad-hoc solutions.
2021-11-17 11:01:04 -05:00
Jean-Paul Calderone
e8adca40ab
give the ContainerVersionError exceptions a nice str
2021-11-16 18:36:59 -05:00
meejah
2fe686135b
rename data to appease distutils
2021-11-16 15:08:31 -07:00
meejah
4f64bbaa00
data
2021-11-16 15:08:31 -07:00
meejah
9b3c55e4aa
test a second deserialzation
2021-11-16 15:08:31 -07:00
meejah
94670461f1
tests
2021-11-16 15:08:31 -07:00
meejah
89c2aacadc
working test of 'in the wild' data, working converters
2021-11-16 15:08:31 -07:00
meejah
bf5e682d71
test upgrade of main state works
2021-11-16 15:08:31 -07:00
meejah
f81e4e2d25
refactor to use serializers / pickle->json upgraders
2021-11-16 15:08:31 -07:00
meejah
fa6950f08d
an old pickle-format lease-checker state file
2021-11-16 15:08:31 -07:00
meejah
bb70e00065
Make internal state JSON-able for lease-crawler
2021-11-16 15:08:31 -07:00
Itamar Turner-Trauring
c195f895db
Python 2 support.
2021-11-16 11:16:26 -05:00
Itamar Turner-Trauring
41ec63f758
Passing first tests.
2021-11-16 10:56:21 -05:00
Jean-Paul Calderone
fcd634fc43
some direct tests for the new utility function
2021-11-15 13:34:46 -05:00
Jean-Paul Calderone
6c2e85e991
put the comment back
2021-11-12 16:25:36 -05:00
Jean-Paul Calderone
dece67ee3a
it is not the remote interface that varies anymore
2021-11-12 16:24:29 -05:00
Jean-Paul Calderone
c3cb0ebaea
Switch to per-call parameter for controlling lease renewal behavior
...
This is closer to an implementation where you could have two frontends, say a
Foolscap frontend and an HTTP frontend or even just two different HTTP
frontends, which had different opinions about what the behaviour should be.
2021-11-12 16:20:27 -05:00
Itamar Turner-Trauring
c101dd4dc9
Closer to first passing test.
2021-11-12 13:13:19 -05:00
Itamar Turner-Trauring
12cbf8a901
First sketch of HTTP testing infrastructure.
2021-11-12 13:03:53 -05:00
Jean-Paul Calderone
9af81d21c5
add a way to turn off implicit bucket lease renewal too
2021-11-10 16:08:40 -05:00