Skip to content

Commit

Permalink
fix(storage): missing Size in listParts output
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Jun 29, 2023
1 parent 0175d3d commit 679d78a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/storage/__tests__/AwsClients/S3/cases/listParts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ const listPartsHappyCase: ApiFunctionalTestCase<typeof listParts> = [
'<Part>' +
'<PartNumber>1</PartNumber>' +
'<ETag>etag1</ETag>' +
'<Size>5242880</Size>' +
'</Part>' +
'<Part>' +
'<PartNumber>2</PartNumber>' +
'<ETag>etag2</ETag>' +
'<Size>1024</Size>' +
'</Part>' +
'</ListPartsResult>',
},
Expand All @@ -50,10 +52,12 @@ const listPartsHappyCase: ApiFunctionalTestCase<typeof listParts> = [
{
PartNumber: 1,
ETag: 'etag1',
Size: 5242880,
},
{
PartNumber: 2,
ETag: 'etag2',
Size: 1024,
},
],
},
Expand Down
1 change: 1 addition & 0 deletions packages/storage/src/AwsClients/S3/listParts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const deserializeCompletedPartList = (input: any[]): CompletedPart[] =>
map(item, {
PartNumber: ['PartNumber', deserializeNumber],
ETag: 'ETag',
Size: ['Size', deserializeNumber],
})
);

Expand Down

0 comments on commit 679d78a

Please sign in to comment.