fix(proxy): use a valid local syslog tag
This commit is contained in:
@@ -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() == [
|
||||
|
||||
Reference in New Issue
Block a user