add controller tests, move validation testing from e2e

revert unnecessary change

update mocks

add structured-headers to e2e deps
This commit is contained in:
mertalev
2025-10-06 15:14:26 -04:00
parent 81a66350f6
commit fe71662d24
16 changed files with 525 additions and 125 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ export class StartUploadDto extends BaseUploadHeadersDto {
@Expose({ name: UploadHeader.ReprDigest })
@Transform(({ value }) => {
if (!value) {
return null;
throw new BadRequestException(`Missing ${UploadHeader.ReprDigest} header`);
}
const checksum = parseDictionary(value).get('sha')?.[0];