MCPcopy Create free account
hub / github.com/zalando/skipper / TestPresentAuditJSON

Function TestPresentAuditJSON

logging/access_test.go:314–323  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

312}
313
314func 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
325func TestPresentAuditJSONWithCustomFormatter(t *testing.T) {
326 entry := testAccessEntry()

Callers

nothing calls this directly

Calls 3

testAccessEntryFunction · 0.85
testAccessLogFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…