(t *testing.T)
| 291 | } |
| 292 | |
| 293 | func TestPresentAuthUserJSON(t *testing.T) { |
| 294 | entry := testAccessEntry() |
| 295 | entry.AuthUser = "jsmith" |
| 296 | testAccessLog( |
| 297 | t, |
| 298 | entry, |
| 299 | `{"audit":"","auth-user":"jsmith","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":""}`, |
| 300 | Options{AccessLogJSONEnabled: true}, |
| 301 | ) |
| 302 | } |
| 303 | |
| 304 | func TestPresentAudit(t *testing.T) { |
| 305 | entry := testAccessEntry() |
nothing calls this directly
no test coverage detected
searching dependent graphs…