Skip to content

Ability to run all tests locally #2335

@Alirexaa

Description

@Alirexaa

Some of our tests depend on external services, And they can not run locally unless we manually perform some work.

We configured CI to run these external services.

For example, Milvus uses the docker compose file.

steps:
- uses: actions/checkout@v3
- name: 'wget'
run: 'wget https://github.com/milvus-io/milvus/releases/download/v2.4.6/milvus-standalone-docker-compose.yml -O docker-compose.yml'
- name: 'compose'
run: 'sudo docker compose up -d'
- name: Setup .NET
uses: actions/setup-dotnet@v4

Elasticsearch is configured by services in actions.

jobs:
build:
runs-on: ubuntu-latest
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
ports:
- 9300:9300
- 9201:9200

We should change these tests to use TestContainer like the Aspire team did.

Update

We migrate the HealthChecks.Redis tests to Testcontainer in #2345.
Let's use that PR as a sample and migrate the other tests.

Check Lists

CC @adamsitnik @eerhardt @unaizorrilla

Metadata

Metadata

Assignees

Labels

Ups for grabsIssue is available to anyone who is interestedgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions