storage/test/symlink: fix path concat

This commit is contained in:
Peter Bieringer
2026-04-14 09:47:31 +02:00
parent eab959df7a
commit 32055f9048

View File

@@ -194,15 +194,15 @@ class TestMultiFileSystem(BaseTest):
def test_collection_sharing_by_softlink(self) -> None:
"""Test collection sharing by softlink."""
self.configure({"auth": {"type": "none"}})
path_group_col = "/group/calendar-shared.ics/"
path_group_col = "group/calendar-shared.ics"
file_item = "event1.ics"
self.mkcalendar(path_group_col, login="group:grouppw")
self.mkcalendar("/" + path_group_col + "/", login="group:grouppw")
event = get_file_content(file_item)
self.put(os.path.join(path_group_col, file_item), event)
fs_path_group_col = self.colpath + "/collection-root" + path_group_col
fs_path_group_col_rel = ".." + path_group_col
fs_path_user = self.colpath + "/collection-root/user"
fs_path_user_col = self.colpath + "/collection-root/user/calendar-group.ics"
fs_path_group_col = os.path.join(self.colpath, "collection-root", path_group_col)
fs_path_group_col_rel = os.path.join("..", path_group_col)
fs_path_user = os.path.join(self.colpath, "collection-root", "user")
fs_path_user_col = os.path.join(self.colpath, "collection-root", "user", "calendar-group.ics")
logger.debug("colpath=%r fs_path_group_col=%r", self.colpath, fs_path_group_col)
assert os.path.isdir(fs_path_group_col)
# create user directory and check