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

Function TestPresentAuthUserJSON

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

Source from the content-addressed store, hash-verified

291}
292
293func 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
304func TestPresentAudit(t *testing.T) {
305 entry := testAccessEntry()

Callers

nothing calls this directly

Calls 2

testAccessEntryFunction · 0.85
testAccessLogFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…