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

Function TestPresentFlowIdJSON

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

Source from the content-addressed store, hash-verified

271}
272
273func 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
284func TestPresentAuthUser(t *testing.T) {
285 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…