Add share to docker config issue (#4322)

This commit is contained in:
Mike Degatano
2023-05-30 15:36:06 -04:00
committed by GitHub
parent 841f68c175
commit e449205863
6 changed files with 35 additions and 17 deletions

View File

@@ -126,8 +126,20 @@ def test_addon_map_folder_defaults(
in docker_addon.mounts
)
# Share not mapped
assert "/share" not in [mount["Target"] for mount in docker_addon.mounts]
# Share added and propagation set
assert (
Mount(
type="bind",
source=coresys.config.path_extern_share.as_posix(),
target="/share",
read_only=True,
propagation="slave",
)
in docker_addon.mounts
)
# Backup not added
assert "/backup" not in [mount["Target"] for mount in docker_addon.mounts]
def test_journald_addon(