|
@@ -200,6 +200,20 @@ def test_fuse_versions_view(archivers, request):
|
|
|
assert open(hl3, "rb").read() == b"123456"
|
|
|
|
|
|
|
|
|
+@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
|
|
+def test_fuse_duplicate_name(archivers, request):
|
|
|
+ archiver = request.getfixturevalue(archivers)
|
|
|
+ cmd(archiver, "repo-create", RK_ENCRYPTION)
|
|
|
+ cmd(archiver, "create", "archive", "input")
|
|
|
+ cmd(archiver, "create", "archive", "input")
|
|
|
+ mountpoint = os.path.join(archiver.tmpdir, "mountpoint")
|
|
|
+ # mount the whole repository, archives show up as toplevel directories:
|
|
|
+ with fuse_mount(archiver, mountpoint):
|
|
|
+ path = os.path.join(mountpoint)
|
|
|
+ dirs = os.listdir(path)
|
|
|
+ assert len(set(dirs)) == 2 # there must be 2 unique dir names for 2 archives
|
|
|
+
|
|
|
+
|
|
|
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
|
|
def test_fuse_allow_damaged_files(archivers, request):
|
|
|
archiver = request.getfixturevalue(archivers)
|