Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test
  • Loading branch information
cgoetz-inovex committed Sep 28, 2026
commit fddf5d22a833a031e1fd9bb3dada681e4779db87
12 changes: 12 additions & 0 deletions internal/pkg/print/debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,18 @@
},
isValid: true,
},
{
description: "more headers",
inputResp: fixtureHTTPResponse(func(resp *http.Response) {

Check failure on line 501 in internal/pkg/print/debug_test.go

View workflow job for this annotation

GitHub Actions / CI

response body must be closed (bodyclose)
resp.Header.Add("X-Trace-Id", "trace-id")
}),
expected: []string{
"response from http://example.com: HTTP/1.1 200 OK",
"response headers: [Accept: application/json, Content-Length: 15, Content-Type: application/json, X-Trace-Id: trace-id]",
"response body: [key: value]",
},
isValid: true,
},
{
description: "empty body",
inputResp: fixtureHTTPResponse(func(resp *http.Response) { // nolint:bodyclose // false positive, body is closed in the test
Expand Down
Loading