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

Function TestLoopbackReachLimit

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

Source from the content-addressed store, hash-verified

215}
216
217func TestLoopbackReachLimit(t *testing.T) {
218 routes := `
219 entry: *
220 -> appendResponseHeader("X-Entry-Route-Done", "true")
221 -> setRequestHeader("X-Loop-Route", "1")
222 -> <loopback>;
223
224 loopRoute1: Header("X-Loop-Route", "1")
225 -> appendResponseHeader("X-Loop-Route-Done", "1")
226 -> <loopback>;
227 `
228
229 testLoopback(t, routes, Params{MaxLoopbacks: 3}, nil, http.StatusInternalServerError, http.Header{
230 "X-Entry-Route-Done": nil,
231 "X-Loop-Route-Done": nil,
232 })
233}
234
235func TestLoopbackReachDefaultLimit(t *testing.T) {
236 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…