mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Fix: [storage] broken support of 'folder_umask': test
This commit is contained in:
parent
7b9596b850
commit
2d417098af
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ class TestMultiFileSystem(BaseTest):
|
||||||
self.configure({"storage": {"filesystem_folder": folder}})
|
self.configure({"storage": {"filesystem_folder": folder}})
|
||||||
assert os.path.isdir(folder)
|
assert os.path.isdir(folder)
|
||||||
|
|
||||||
|
def test_folder_creation_with_umask(self) -> None:
|
||||||
|
"""Verify that the folder is created with umask."""
|
||||||
|
folder = os.path.join(self.colpath, "subfolder")
|
||||||
|
self.configure({"storage": {"filesystem_folder": folder, "folder_umask": "0077"}})
|
||||||
|
assert os.path.isdir(folder)
|
||||||
|
|
||||||
def test_fsync(self) -> None:
|
def test_fsync(self) -> None:
|
||||||
"""Create a directory and file with syncing enabled."""
|
"""Create a directory and file with syncing enabled."""
|
||||||
self.configure({"storage": {"_filesystem_fsync": "True"}})
|
self.configure({"storage": {"_filesystem_fsync": "True"}})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue