arcus-azure/arcus.testing

Create `TemporaryBlobFile` test fixture for test-friendly Azure Blob storage interaction

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
When interacting with Azure Blob storage, we need a test-friendly way of uploading and downloading files. Any uploading operation should automatically result in a removal of the blob when the test is run.

Describe the solution you'd like
A good way of showing this setup/teardown relationship is by creating a temporary test fixture which uploads the contents upon creation of the test fixture and removes them once the fixture is disposed of. We should make sure that we both provide factory methods for uploading a new blob as well as referencing an existing blob. That way, any business operation that uploads a blob is also taken into account when the test fixture is disposed.

Additional context