Skip to content

Migrate 100% of external dependencies to TestContainers #1983

Description

@Aaronontheweb

This project is in violation of the git clone && dotnet test standard of execution - largely due to how we manage external services dependencies inside our build system:

# Linux
# Install Azurite in linux
- bash: |
sudo npm install -g azurite@3.26.0
sudo mkdir azurite
sudo azurite --silent --location azurite --debug azirute/debug.log &
displayName: 'Install and Run Azurite (Linux)'
condition: in( variables['Agent.OS'], 'Linux', 'Darwin' )
# Do build
- script: dotnet test -c Release --no-build --framework net9.0 --logger:trx --collect:"XPlat Code Coverage" --results-directory TestResults --settings coverlet.runsettings
displayName: 'Run Tests (Linux)'
continueOnError: true
condition: in( variables['Agent.OS'], 'Linux', 'Darwin' )
# Windows
# Start Azure Storage Emulator in windows
- powershell: |
npm install -g azurite@3.26.0
mkdir azurite
Start-Process azurite.cmd -PassThru
displayName: 'Install and Run Azurite (Windows)'
condition: eq( variables['Agent.OS'], 'Windows_NT' )
# Do build
- script: dotnet test -c Release --no-build --logger:trx --collect:"XPlat Code Coverage" --results-directory TestResults --settings coverlet.runsettings
displayName: 'Run Tests (Windows)'
continueOnError: true
condition: eq( variables['Agent.OS'], 'Windows_NT' )

and

amqpTestUseDocker : false # Flag for Akka.Streams.Azure.StorageQueue.Test to use docker

All must be migrated to use TestContainers and "just work" internally

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions