X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/55778ad90a9b869f514e729b3f85c12383f4e2a7..b73985d8a0c9173aec57f6a81fe540b2813a5bff:/services/fuse/tests/test_cache.py diff --git a/services/fuse/tests/test_cache.py b/services/fuse/tests/test_cache.py index 7dab2c5821..745c6f7b31 100644 --- a/services/fuse/tests/test_cache.py +++ b/services/fuse/tests/test_cache.py @@ -11,8 +11,8 @@ import unittest from .integration_test import IntegrationTest from .mount_test_base import MountTestBase -class TmpCollectionTest(IntegrationTest): - mnt_args = ["--directory-cache=0"] +class CacheTest(IntegrationTest): + mnt_args = ["--by-id", "--directory-cache=0"] @IntegrationTest.mount(argv=mnt_args) def test_cache_spill(self): @@ -21,6 +21,11 @@ class TmpCollectionTest(IntegrationTest): cw = arvados.collection.Collection() f = cw.open("blurg%i" % i, "w") f.write("bloop%i" % i) + + cw.mkdirs("dir%i" % i) + f = cw.open("dir%i/blurg" % i, "w") + f.write("dirbloop%i" % i) + cw.save_new() pdh.append(cw.portable_data_hash()) self.pool_test(self.mnt, pdh) @@ -30,6 +35,11 @@ class TmpCollectionTest(IntegrationTest): for i,v in enumerate(pdh): j = os.path.join(mnt, "by_id", v, "blurg%i" % i) self.assertTrue(os.path.exists(j)) + j = os.path.join(mnt, "by_id", v, "dir%i/blurg" % i) + self.assertTrue(os.path.exists(j)) + for i,v in enumerate(pdh): j = os.path.join(mnt, "by_id", v, "blurg%i" % i) self.assertTrue(os.path.exists(j)) + j = os.path.join(mnt, "by_id", v, "dir%i/blurg" % i) + self.assertTrue(os.path.exists(j))