1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

fix: implements logfmt with more strict rules. fixes #3006 (#3007)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Amir Raminfar
2024-06-03 08:52:40 -07:00
committed by GitHub
parent f2e29dadf1
commit a0d60357b8
9 changed files with 198 additions and 35 deletions

View File

@@ -127,7 +127,17 @@ func Test_createEvent(t *testing.T) {
Message: "123",
},
},
{
name: "invalid logfmt message",
args: args{
message: "2020-05-13T18:55:37.772853839Z sample text with=equal sign",
},
want: &LogEvent{
Message: "sample text with=equal sign",
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := createEvent(tt.args.message, STDOUT); !reflect.DeepEqual(got.Message, tt.want.Message) {