(t *testing.T)
| 271 | } |
| 272 | |
| 273 | func TestPresentFlowIdJSON(t *testing.T) { |
| 274 | entry := testAccessEntry() |
| 275 | entry.Request.Header.Set("X-Flow-Id", "sometestflowid") |
| 276 | testAccessLog( |
| 277 | t, |
| 278 | entry, |
| 279 | `{"audit":"","auth-user":"","duration":42,"flow-id":"sometestflowid","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":""}`, |
| 280 | Options{AccessLogJSONEnabled: true}, |
| 281 | ) |
| 282 | } |
| 283 | |
| 284 | func TestPresentAuthUser(t *testing.T) { |
| 285 | entry := testAccessEntry() |
nothing calls this directly
no test coverage detected
searching dependent graphs…