fix(proxy): use a valid local syslog tag

This commit is contained in:
2026-10-14 13:04:13 +08:00
parent c7b260adc2
commit f269a39bbe
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -881,6 +881,8 @@ def test_proxy_is_separate_from_private_execution_control():
# records on the local namespace socket and restrict their fields to counters.
destination, format_name = re.findall(r"^\s+access_log (\S+) (\w+);$", contents, re.M)[0]
assert destination.startswith("syslog:server=unix:/")
tag = next(part[4:] for part in destination.split(",") if part.startswith("tag="))
assert re.fullmatch(r"[A-Za-z0-9_]+", tag)
assert format_name == "bounded" and "/dev/stdout" not in contents
log_fields = re.findall(r"^\s+log_format bounded '([^']+)';$", contents, re.M)[0]
assert log_fields.split() == [