fix: azure tests and add azure ci test

This commit is contained in:
Ben McClelland
2024-09-23 09:10:52 -07:00
parent 9f9f895522
commit 3a9cbfcbd6
11 changed files with 133 additions and 36 deletions
+3 -1
View File
@@ -183,12 +183,14 @@ func (az *Azure) CreateBucket(ctx context.Context, input *s3.CreateBucketInput,
var acl auth.ACL
if len(aclBytes) > 0 {
if err := json.Unmarshal(aclBytes, &acl); err != nil {
return fmt.Errorf("unmarshal bucket acl: %w", err)
return fmt.Errorf("unmarshal acl: %w", err)
}
}
if acl.Owner == acct.Access {
return s3err.GetAPIError(s3err.ErrBucketAlreadyOwnedByYou)
}
return s3err.GetAPIError(s3err.ErrBucketAlreadyExists)
}
return azureErrToS3Err(err)
}