Skip to content

Commit

Permalink
fix: azure list multipart uploads test failures
Browse files Browse the repository at this point in the history
The latest azurite made a change where the blob metadata must be
explicitly requested when calling NewListBlobsFlatPager(). We were
taking action on metadata iteams, and the tests were failing due
to these always missing without requesting metadata to be included
in the response.

Fix is to enable metadata for the response.
  • Loading branch information
benmcclelland committed Oct 25, 2024
1 parent 0aa62f1 commit 85b06bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,8 @@ func (az *Azure) ListMultipartUploads(ctx context.Context, input *s3.ListMultipa
prefix := string(metaTmpMultipartPrefix)

pager := client.NewListBlobsFlatPager(&container.ListBlobsFlatOptions{
Prefix: &prefix,
Include: container.ListBlobsInclude{Metadata: true},
Prefix: &prefix,
})

for pager.More() {
Expand Down

0 comments on commit 85b06bf

Please sign in to comment.