hunterlan / hunterlan/AzStorage
Set up Azurite-based testing infrastructure for integration tests
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 newdocs/testing.md). - Wire Azurite startup/shutdown into
AzStorage.IntegrationTests(e.g. via a sharedIAsyncLifetimefixture) 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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