Stream beets imports over HTTP.

test(middleware): cover body limit happy path and access log attributes #31

Merged glerp.sullen.net
targeting main from glerp.sullen.net/goosefoot:test/hygiene-middleware
Merged opened by and assigned to glerp.sullen.net
targeting main from glerp.sullen.net/goosefoot:test/hygiene-middleware

Summary #

  • Add happy-path coverage for middleware.MaxBodySize when reading a payload within maxBytes, and assert *http.MaxBytesError on oversized payloads.
  • Assert downstream non-invocation across all rejected middleware.Auth scenarios and cover whitespace-only configured keys (" ").
  • Assert complete access-log attributes (path, uri, status, bytes) and response body in middleware.Logging instead of leaving written response bytes unasserted, and verify SSE access logging suppresses duplicate "HTTP request" entries.
  • Move flush-error assertions out of the HTTP handler callback into linear Arrange-Act-Assert flow and eliminate abbreviated identifiers (req, rr, rec, rc, logBuf, readErr, flushErr, l).
Commits 0