From 12736f99e5eedd093d4fbea0fcdff75613a4d715 Mon Sep 17 00:00:00 2001 From: Juan Pablo Tosso Date: Sat, 5 Aug 2023 22:23:06 +0200 Subject: [PATCH] fix test --- internal/auditlog/formats_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auditlog/formats_test.go b/internal/auditlog/formats_test.go index bbddb79de..68712a2d1 100644 --- a/internal/auditlog/formats_test.go +++ b/internal/auditlog/formats_test.go @@ -19,7 +19,7 @@ func TestNativeFormatter(t *testing.T) { if err != nil { t.Error(err) } - if !strings.Contains(f.MIME(), "json") { + if !strings.Contains(f.MIME(), "x-coraza-auditlog-native") { t.Errorf("failed to match MIME, expected json and got %s", f.MIME()) } // Log contains random strings, do a simple sanity check