mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
basedir fixup, more tests
This commit is contained in:
parent
a628411988
commit
283be23e3a
@ -10,6 +10,7 @@ import allmydata.frontends.magic_folder
|
||||
import allmydata.util.log
|
||||
|
||||
from allmydata.node import OldConfigError, OldConfigOptionError, UnescapedHashError, _Config, read_config, create_node_dir
|
||||
from allmydata.node import config_from_string
|
||||
from allmydata.frontends.auth import NeedRootcapLookupScheme
|
||||
from allmydata import client
|
||||
from allmydata.storage_client import StorageFarmBroker
|
||||
@ -571,6 +572,24 @@ def flush_but_dont_ignore(res):
|
||||
d.addCallback(_done)
|
||||
return d
|
||||
|
||||
|
||||
class IntroducerClients(unittest.TestCase):
|
||||
|
||||
def test_invalid_introducer_furl(self):
|
||||
cfg = (
|
||||
"[client]\n"
|
||||
"introducer.furl = None\n"
|
||||
)
|
||||
config = config_from_string(cfg, "client.port", "basedir")
|
||||
|
||||
with self.assertRaises(ValueError) as ctx:
|
||||
client.create_introducer_clients(config, main_tub=None)
|
||||
self.assertIn(
|
||||
"invalid 'introducer.furl = None'",
|
||||
str(ctx.exception)
|
||||
)
|
||||
|
||||
|
||||
class Run(unittest.TestCase, testutil.StallMixin):
|
||||
|
||||
def setUp(self):
|
||||
|
Loading…
Reference in New Issue
Block a user