tahoe-lafs/src/allmydata/test/mutable
Brian Warner cac99569e9 factor out "Tub maker"
This adds Node._create_tub(), which knows how to make a Tub with all the
right options and connection handlers that were specified in
tahoe.cfg (the connection handlers are disabled for now, but they'll get
implemented soon).

The new Node.create_main_tub() calls it. This main Tub is used:

* to connect to the Introducer
* to host the Helper (if enabled)
* to host the Storage Server (if enabled)

Node._create_tub() is also passed into the StorageFarmBroker, which
passes it into each NativeStorageServer, to create the (separate) Tub
for each server connection. _create_tub knows about the options, and
NativeStorageServer can override the connection handlers. This way we
don't need to pass tub options or default handlers into Client,
StorageFarmBroker, or NativeStorageServer.

A number of tests create NativeStorageServer objects: these were updated
to match the new arguments. test_storage_client was simplified because
we no longer need to mock out the Tub() constructor.
2016-08-27 17:36:55 -07:00
..
__init__.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_checker.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_datahandle.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_different_encoding.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_exceptions.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_filehandle.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_filenode.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_interoperability.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_multiple_encodings.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_multiple_versions.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_problems.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_repair.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_roundtrip.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_servermap.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
test_update.py test.mutable.Update: stop exercising max_shares 2016-08-03 15:32:01 -04:00
test_version.py split test_mutable.py into smaller files 2016-08-03 14:54:32 -04:00
util.py factor out "Tub maker" 2016-08-27 17:36:55 -07:00