(t *testing.T)
| 312 | } |
| 313 | |
| 314 | func TestPresentAuditJSON(t *testing.T) { |
| 315 | entry := testAccessEntry() |
| 316 | entry.Request.Header.Set(logFilter.UnverifiedAuditHeader, "c4ddfe9d-a0d3-4afb-bf26-24b9588731a0") |
| 317 | testAccessLog( |
| 318 | t, |
| 319 | entry, |
| 320 | `{"audit":"c4ddfe9d-a0d3-4afb-bf26-24b9588731a0","auth-user":"","duration":42,"flow-id":"","host":"127.0.0.1","level":"info","method":"GET","msg":"","proto":"HTTP/1.1","referer":"","requested-host":"example.com","response-size":2326,"status":418,"timestamp":"10/Oct/2000:13:55:36 -0700","uri":"/apache_pb.gif","user-agent":""}`, |
| 321 | Options{AccessLogJSONEnabled: true}, |
| 322 | ) |
| 323 | } |
| 324 | |
| 325 | func TestPresentAuditJSONWithCustomFormatter(t *testing.T) { |
| 326 | entry := testAccessEntry() |
nothing calls this directly
no test coverage detected
searching dependent graphs…