Loading
Deduplicate LFS transfer test setup
What does this MR do and why?
Problem
lfstransfer_test.go repeats LFS payload, header, signing, and batch
response parsing logic across several scenarios.
Solution
- Extract helpers for standard headers and recurring LFS ID payloads.
- Centralize ID encoding and HMAC-SHA256 token generation.
- Centralize batch item parsing and token verification.
- Reuse shared test secrets and handler headers.
No change in behavior.
References
How to set up and validate locally
- Run
go test ./internal/command/lfstransfer/.... - Run
go vet. - Run
gofmt -d.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.