mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16:29 +00:00
Fix typo in journald location (#2751)
* Fix typo in journal location * Patch pathlib.Path.exists to ensure false return for test
This commit is contained in:
parent
82f76f60bd
commit
e6c57dfc80
@ -27,7 +27,7 @@ MACHINE_ID = Path("/etc/machine-id")
|
||||
SOCKET_DBUS = Path("/run/dbus/system_bus_socket")
|
||||
SOCKET_DOCKER = Path("/run/docker.sock")
|
||||
RUN_SUPERVISOR_STATE = Path("/run/supervisor")
|
||||
SYSTEMD_JOURNAL_PERSISTENT = Path("/var/logs/journal")
|
||||
SYSTEMD_JOURNAL_PERSISTENT = Path("/var/log/journal")
|
||||
SYSTEMD_JOURNAL_VOLATILE = Path("/run/log/journal")
|
||||
|
||||
DOCKER_NETWORK = "hassio"
|
||||
|
@ -99,6 +99,7 @@ def test_addon_map_folder_defaults(
|
||||
|
||||
def test_journald_addon_volatile(coresys: CoreSys, addonsdata_system: Dict[str, Data]):
|
||||
"""Validate volume for journald option, with volatile logs."""
|
||||
with patch("pathlib.Path.exists", return_value=False):
|
||||
docker_addon = get_docker_addon(
|
||||
coresys, addonsdata_system, "journald-addon-config.json"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user