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

Function TestLoopbackReachDefaultLimit

proxy/loopback_test.go:235–251  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

233}
234
235func TestLoopbackReachDefaultLimit(t *testing.T) {
236 routes := `
237 entry: *
238 -> appendResponseHeader("X-Entry-Route-Done", "true")
239 -> setRequestHeader("X-Loop-Route", "1")
240 -> <loopback>;
241
242 loopRoute1: Header("X-Loop-Route", "1")
243 -> appendResponseHeader("X-Loop-Route-Done", "1")
244 -> <loopback>;
245 `
246
247 testLoopback(t, routes, Params{}, nil, http.StatusInternalServerError, http.Header{
248 "X-Entry-Route-Done": nil,
249 "X-Loop-Route-Done": nil,
250 })
251}
252
253func TestLoopbackPreserveOriginalRequest(t *testing.T) {
254 routes := `

Callers

nothing calls this directly

Calls 1

testLoopbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…