David Stainton
de61cd260c
Add got_static_announcement and unit test
2016-08-24 21:11:58 +00:00
Brian Warner
1b64ab5e85
simplify when_connected_enough()
...
This seems happier as a method on StorageBroker, rather than a
completely separate helper class.
2016-07-21 17:23:22 -07:00
Brian Warner
76f6d2d21a
create Tub inside NativeStorageServer, not broker
...
This makes IServer instances responsible for their own network
connections, which will help when we add HTTP-based servers in the
future. The StorageFarmBroker should not care about how the IServer uses
the network, it just provides the announcement (and local config).
2016-05-03 15:09:13 -07:00
Brian Warner
e147aa3da2
test: use patch() to control Tub creation
...
This reduces the dependency on the internals of storage_client.py
2016-05-03 14:49:31 -07:00
Brian Warner
e301ac88ea
make test slightly easier to follow
2016-05-03 14:03:17 -07:00
meejah
aea0abf54a
fix one utest
2016-05-02 18:09:53 -06:00
David Stainton
6061b6fc3c
WIP Storage broker client creates one tub per server
...
i was unable to get all the unit tests working;
this is my work in progress.
2016-05-02 15:23:07 +00:00
meejah
b834b71dac
Change API to a listener-style, with helper
2016-04-26 13:40:02 -06:00
meejah
55898941da
Get rid of the 'connected_threshold' argument, too
...
- use 'when_connected_to', which takes a threshold
2016-04-26 12:26:40 -06:00
meejah
b65a8fe142
Switch to when_connected_enough()
...
- instead of passing in a Deferred(), we use an observer
- fix up the tests
- TODO: fix magic-folder
2016-04-26 12:26:40 -06:00
meejah
be2576f15d
test covering StorageBroker's connected_threshold code
2016-04-26 12:26:39 -06:00
Daira Hopwood
c0a2af5d69
test_storage_client.py: add test_get_available_space_{old,new}.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-11-23 06:03:00 +00:00