From 85782d1376ba94714088499b064ba3e43aefe722 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 14 Dec 2015 15:20:23 -0500 Subject: [PATCH] 7939: Use 100:: for bogus host check and add comment about API check. --- services/fuse/arvados_fuse/command.py | 1 + services/fuse/tests/test_command_args.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/fuse/arvados_fuse/command.py b/services/fuse/arvados_fuse/command.py index 11935adb92..cd81a5390a 100644 --- a/services/fuse/arvados_fuse/command.py +++ b/services/fuse/arvados_fuse/command.py @@ -153,6 +153,7 @@ class Mount(object): keep_params={ "block_cache": arvados.keep.KeepBlockCache(self.args.file_cache) }) + # Do a sanity check that we have a working arvados host + token. self.api.users().current().execute() def _setup_mount(self): diff --git a/services/fuse/tests/test_command_args.py b/services/fuse/tests/test_command_args.py index 2eb73b5a7a..bfefc674d7 100644 --- a/services/fuse/tests/test_command_args.py +++ b/services/fuse/tests/test_command_args.py @@ -218,7 +218,7 @@ class MountErrorTest(unittest.TestCase): self.assertEqual(1, ex.exception.code) def test_bogus_host(self): - arvados.config._settings["ARVADOS_API_HOST"] = "example.null" + arvados.config._settings["ARVADOS_API_HOST"] = "100::" with self.assertRaises(SystemExit) as ex: args = arvados_fuse.command.ArgumentParser().parse_args([self.mntdir]) arvados_fuse.command.Mount(args, logger=self.logger).run() -- 2.30.2