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

Function TestMissingHostFallbackJSON

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

Source from the content-addressed store, hash-verified

251}
252
253func TestMissingHostFallbackJSON(t *testing.T) {
254 entry := testAccessEntry()
255 entry.Request.RemoteAddr = ""
256 testAccessLog(
257 t,
258 entry,
259 `{"audit":"","auth-user":"","duration":42,"flow-id":"","host":"","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":""}`,
260 Options{AccessLogJSONEnabled: true},
261 )
262}
263
264func TestPresentFlowId(t *testing.T) {
265 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…