storage/test/symlink: fix path concat
This commit is contained in:
@@ -194,15 +194,15 @@ class TestMultiFileSystem(BaseTest):
|
|||||||
def test_collection_sharing_by_softlink(self) -> None:
|
def test_collection_sharing_by_softlink(self) -> None:
|
||||||
"""Test collection sharing by softlink."""
|
"""Test collection sharing by softlink."""
|
||||||
self.configure({"auth": {"type": "none"}})
|
self.configure({"auth": {"type": "none"}})
|
||||||
path_group_col = "/group/calendar-shared.ics/"
|
path_group_col = "group/calendar-shared.ics"
|
||||||
file_item = "event1.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)
|
event = get_file_content(file_item)
|
||||||
self.put(os.path.join(path_group_col, file_item), event)
|
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 = os.path.join(self.colpath, "collection-root", path_group_col)
|
||||||
fs_path_group_col_rel = ".." + path_group_col
|
fs_path_group_col_rel = os.path.join("..", path_group_col)
|
||||||
fs_path_user = self.colpath + "/collection-root/user"
|
fs_path_user = os.path.join(self.colpath, "collection-root", "user")
|
||||||
fs_path_user_col = self.colpath + "/collection-root/user/calendar-group.ics"
|
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)
|
logger.debug("colpath=%r fs_path_group_col=%r", self.colpath, fs_path_group_col)
|
||||||
assert os.path.isdir(fs_path_group_col)
|
assert os.path.isdir(fs_path_group_col)
|
||||||
# create user directory and check
|
# create user directory and check
|
||||||
|
|||||||
Reference in New Issue
Block a user