Bug #4501
closed
[FUSE] arv-mount --by-id should expose the /by_id directory as well as (not instead of) exposing collections in the mount root
Added by Tom Clegg over 10 years ago.
Updated over 10 years ago.
Estimated time:
(Total: 1.00 h)
- Target version changed from Arvados Future Sprints to 2014-12-10 sprint
- Assigned To set to Brett Smith
- Status changed from New to In Progress
At c70fc67...
I noticed that by changing assertEqual
to self.assertIn('README', ...)
in FuseMagicTest→runTest we lose the test that the self.testcollection
directory did not exist before we made it magically appear by reading it:
# now check some stuff
self.assertIn('README', os.listdir(self.mounttmp)) # <-- here
self.assertDirContents(self.testcollection, ['thing1.txt'])
self.assertDirContents(os.path.join('by_id', self.testcollection),
['thing1.txt'])
mount_ls = os.listdir(self.mounttmp)
self.assertIn('README', mount_ls)
self.assertIn(self.testcollection, mount_ls)
self.assertIn(self.testcollection,
os.listdir(os.path.join(self.mounttmp, 'by_id')))
(It seems like the most important part is that it does appear after. OTOH, since we document "this directory will appear empty until..." perhaps that's worth testing too?)
That's the only complaint I could come up with.
Tom Clegg wrote:
At c70fc67...
I noticed that by changing assertEqual
to self.assertIn('README', ...)
in FuseMagicTest→runTest we lose the test that the self.testcollection
directory did not exist before we made it magically appear by reading it
Added
self.assertFalse(any(arvados.util.keep_locator_pattern.match(fn) or
arvados.util.uuid_pattern.match(fn)
for fn in mount_ls),
"new FUSE MagicDirectory lists Collection")
at b9caaf61.
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset arvados|commit:4b0934a2bb95509468fc4b6132177d47cc7988a8.
Also available in: Atom
PDF