hunterlan / hunterlan/AzStorage

Set up Azurite-based testing infrastructure for integration tests

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Goal

Provide a local Azure Storage emulator (Azurite) so integration tests can exercise real blob/container operations without hitting a real Azure subscription.

Why

We need confidence in storage operations before building any UI. Testing against a live Azure account is slow, costly, and not reproducible in CI; Azurite gives us a fast, free, deterministic emulator.

Tasks

  • Add Azurite as a dev dependency (Docker image, or Testcontainers for .NET — pick whichever is simplest to run locally and in CI).
  • Document how to start Azurite locally in README.md (or a new docs/testing.md).
  • Wire Azurite startup/shutdown into AzStorage.IntegrationTests (e.g. via a shared IAsyncLifetime fixture) so tests are self-contained.
  • Add the Azurite step to the GitHub Actions workflow (depends on the CI issue) so integration tests run in CI too.

Acceptance Criteria

  • A sample integration test can connect to the emulator, create a container, and list it.
  • Integration tests run both locally (dotnet test) and in CI without any real Azure credentials.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the AzStorage.IntegrationTests project and the existing GitHub Actions workflow, then choose either a Docker-based Azurite service or Testcontainers for .NET. Check README.md or docs/testing.md for the local setup instructions. Done means a sample test creates and lists a container against Azurite, and dotnet test works locally and in CI without Azure credentials.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, github-actions
Domain
ci-cd, cloud, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.