mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 05:53:12 +00:00
switch from node to client for config loading
apparently clients are the things with storage
This commit is contained in:
parent
3719a107be
commit
23e1631259
@ -694,7 +694,7 @@ class IntroducerClients(unittest.TestCase):
|
|||||||
"[client]\n"
|
"[client]\n"
|
||||||
"introducer.furl = None\n"
|
"introducer.furl = None\n"
|
||||||
)
|
)
|
||||||
config = config_from_string("basedir", "client.port", cfg)
|
config = client.config_from_string("basedir", "client.port", cfg)
|
||||||
|
|
||||||
with self.assertRaises(ValueError) as ctx:
|
with self.assertRaises(ValueError) as ctx:
|
||||||
client.create_introducer_clients(config, main_tub=None)
|
client.create_introducer_clients(config, main_tub=None)
|
||||||
@ -1130,7 +1130,7 @@ introducer.furl = pb://abcde@nowhere/fake
|
|||||||
"""
|
"""
|
||||||
No storage announcement is published if storage is not enabled.
|
No storage announcement is published if storage is not enabled.
|
||||||
"""
|
"""
|
||||||
config = config_from_string(
|
config = client.config_from_string(
|
||||||
self.basedir,
|
self.basedir,
|
||||||
u"tub.port",
|
u"tub.port",
|
||||||
self.get_config(storage_enabled=False),
|
self.get_config(storage_enabled=False),
|
||||||
@ -1149,7 +1149,7 @@ introducer.furl = pb://abcde@nowhere/fake
|
|||||||
A storage announcement with the anonymous storage fURL is published when
|
A storage announcement with the anonymous storage fURL is published when
|
||||||
storage is enabled.
|
storage is enabled.
|
||||||
"""
|
"""
|
||||||
config = config_from_string(
|
config = client.config_from_string(
|
||||||
self.basedir,
|
self.basedir,
|
||||||
u"tub.port",
|
u"tub.port",
|
||||||
self.get_config(storage_enabled=True),
|
self.get_config(storage_enabled=True),
|
||||||
@ -1181,7 +1181,7 @@ introducer.furl = pb://abcde@nowhere/fake
|
|||||||
self.useFixture(UseTestPlugins())
|
self.useFixture(UseTestPlugins())
|
||||||
|
|
||||||
value = u"thing"
|
value = u"thing"
|
||||||
config = config_from_string(
|
config = client.config_from_string(
|
||||||
self.basedir,
|
self.basedir,
|
||||||
u"tub.port",
|
u"tub.port",
|
||||||
self.get_config(
|
self.get_config(
|
||||||
@ -1216,7 +1216,7 @@ introducer.furl = pb://abcde@nowhere/fake
|
|||||||
"""
|
"""
|
||||||
self.useFixture(UseTestPlugins())
|
self.useFixture(UseTestPlugins())
|
||||||
|
|
||||||
config = config_from_string(
|
config = client.config_from_string(
|
||||||
self.basedir,
|
self.basedir,
|
||||||
u"tub.port",
|
u"tub.port",
|
||||||
self.get_config(
|
self.get_config(
|
||||||
@ -1259,7 +1259,7 @@ introducer.furl = pb://abcde@nowhere/fake
|
|||||||
"""
|
"""
|
||||||
self.useFixture(UseTestPlugins())
|
self.useFixture(UseTestPlugins())
|
||||||
|
|
||||||
config = config_from_string(
|
config = client.config_from_string(
|
||||||
self.basedir,
|
self.basedir,
|
||||||
u"tub.port",
|
u"tub.port",
|
||||||
self.get_config(
|
self.get_config(
|
||||||
@ -1298,7 +1298,7 @@ introducer.furl = pb://abcde@nowhere/fake
|
|||||||
"""
|
"""
|
||||||
self.useFixture(UseTestPlugins())
|
self.useFixture(UseTestPlugins())
|
||||||
|
|
||||||
config = config_from_string(
|
config = client.config_from_string(
|
||||||
self.basedir,
|
self.basedir,
|
||||||
u"tub.port",
|
u"tub.port",
|
||||||
self.get_config(
|
self.get_config(
|
||||||
|
Loading…
Reference in New Issue
Block a user