[ARVADOS] updated: d7d291b8276c0723a3c85d322de51480c7c3a93d
git at public.curoverse.com
git at public.curoverse.com
Mon Dec 14 14:11:37 EST 2015
Summary of changes:
services/fuse/tests/test_command_args.py | 7 +++++++
1 file changed, 7 insertions(+)
via d7d291b8276c0723a3c85d322de51480c7c3a93d (commit)
from e994ac99adab1a388104d03b90544d19526a6c47 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d7d291b8276c0723a3c85d322de51480c7c3a93d
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Mon Dec 14 14:11:33 2015 -0500
7939: Additional check for bad token.
diff --git a/services/fuse/tests/test_command_args.py b/services/fuse/tests/test_command_args.py
index 1897e8e..2eb73b5 100644
--- a/services/fuse/tests/test_command_args.py
+++ b/services/fuse/tests/test_command_args.py
@@ -224,6 +224,13 @@ class MountErrorTest(unittest.TestCase):
arvados_fuse.command.Mount(args, logger=self.logger).run()
self.assertEqual(1, ex.exception.code)
+ def test_bogus_token(self):
+ arvados.config._settings["ARVADOS_API_TOKEN"] = "zzzzzzzzzzzzz"
+ with self.assertRaises(SystemExit) as ex:
+ args = arvados_fuse.command.ArgumentParser().parse_args([self.mntdir])
+ arvados_fuse.command.Mount(args, logger=self.logger).run()
+ self.assertEqual(1, ex.exception.code)
+
def test_bogus_mount_dir(self):
# All FUSE errors in llfuse.init() are raised as RuntimeError
# An easy error to trigger is to supply a nonexistent mount point,
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list