From 85b06bf28cf33d17fa1ccab44a93a6a0546822d1 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Fri, 25 Oct 2024 16:57:45 -0700 Subject: [PATCH] fix: azure list multipart uploads test failures 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. --- backend/azure/azure.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/azure/azure.go b/backend/azure/azure.go index 465398b..c2eaac5 100644 --- a/backend/azure/azure.go +++ b/backend/azure/azure.go @@ -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() {