Skip to content

✨ Add TemporaryBlockBlobFile to Arcus.Testing.Storage.Blob #214

@stijnmoreels

Description

@stijnmoreels

Is your feature request related to a problem? Please describe.
We have a TemporaryBlobFile test fixture that deals with regular blobs, but not one that deals with block blobs. Block blobs are espcially useful in places where you want to upload the contents in partials for performance reasons or the way the content is structured.

With one or many CommitAsync calls, ending with a StageAsync call, 'blocks' are prepared and send together as a collection to the blob file.

Describe the solution you'd like
Creates a TemporaryBlockBlobFile that allows us to either temporary override the entire blob file, or append a single block to the blob file.

In both cases, a disposal of the test fixture should result in the blob file having its original content.

Describe alternatives you've considered
n/a

Additional context
https://learn.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-block-blobs

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:storageAll issues related to Azure storagefeatureAll issues related to new featurestriage

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions