mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 03:36:25 +00:00
test another path
This commit is contained in:
parent
a34093ed0e
commit
6e77eba688
@ -79,11 +79,13 @@ class GridManagerCommandLine(SyncTestCase):
|
|||||||
with self.runner.isolated_filesystem():
|
with self.runner.isolated_filesystem():
|
||||||
self.runner.invoke(grid_manager, ["--config", "foo", "create"])
|
self.runner.invoke(grid_manager, ["--config", "foo", "create"])
|
||||||
self.runner.invoke(grid_manager, ["--config", "foo", "add", "storage0", pubkey])
|
self.runner.invoke(grid_manager, ["--config", "foo", "add", "storage0", pubkey])
|
||||||
|
self.runner.invoke(grid_manager, ["--config", "foo", "sign", "storage0", "1"])
|
||||||
|
|
||||||
result = self.runner.invoke(grid_manager, ["--config", "foo", "list"])
|
result = self.runner.invoke(grid_manager, ["--config", "foo", "list"])
|
||||||
names = [
|
names = [
|
||||||
line.split(':')[0]
|
line.split(':')[0]
|
||||||
for line in result.output.strip().split('\n')
|
for line in result.output.strip().split('\n')
|
||||||
|
if not line.startswith(" ") # "cert" lines start with whitespace
|
||||||
]
|
]
|
||||||
self.assertEqual(names, ["storage0"])
|
self.assertEqual(names, ["storage0"])
|
||||||
|
|
||||||
@ -93,7 +95,6 @@ class GridManagerCommandLine(SyncTestCase):
|
|||||||
self.assertEqual(result.output.strip(), "")
|
self.assertEqual(result.output.strip(), "")
|
||||||
|
|
||||||
|
|
||||||
# note: CLITestMixin can't function without also GridTestMixin ... :/
|
|
||||||
class TahoeAddGridManagerCert(AsyncTestCase):
|
class TahoeAddGridManagerCert(AsyncTestCase):
|
||||||
"""
|
"""
|
||||||
Test `tahoe admin add-grid-manager-cert` subcommand
|
Test `tahoe admin add-grid-manager-cert` subcommand
|
||||||
|
Loading…
Reference in New Issue
Block a user