mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +00:00
Fix range header to correctly fetch latest logs (#6202)
* Fix range header to correctly fetch latest logs Add a colon before line numbers to indicate that no cursor is used. This makes the range header work when fetching latest logs from systemd-journal-gatewayd. * Fix pytest
This commit is contained in:
@@ -64,7 +64,7 @@ async def common_test_api_advanced_logs(
|
||||
logs_call = journald_logs.call_args_list[1]
|
||||
assert logs_call[1]["params"]["SYSLOG_IDENTIFIER"] == syslog_identifier
|
||||
assert logs_call[1]["params"]["CONTAINER_LOG_EPOCH"] == "12345"
|
||||
assert logs_call[1]["range_header"] == "entries=0:18446744073709551615"
|
||||
assert logs_call[1]["range_header"] == "entries=:0:18446744073709551615"
|
||||
|
||||
journald_logs.reset_mock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user