dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.92k stars 479 forks source link

[tests] More Conformance tests should use `Testcontainers` #5254

Open radical opened 3 months ago

radical commented 3 months ago

.. similar to how others do this.

https://github.com/dotnet/aspire/blob/44a60c18d9d77110ca0aa3b753476510e4823eb2/tests/Aspire.StackExchange.Redis.Tests/RedisContainerFixture.cs#L11-L43 https://github.com/dotnet/aspire/blob/44a60c18d9d77110ca0aa3b753476510e4823eb2/tests/Aspire.StackExchange.Redis.Tests/ConformanceTests.cs#L18-L19

Currently any tests that need to connect get skipped with Unable to connect to server.

cc @eerhardt @sebastienros @joperezr

eerhardt commented 3 months ago

Qdrant

See https://github.com/testcontainers/testcontainers-dotnet/issues/992

RabbitMq

RabbitMQ is already using testcontainers:

https://github.com/dotnet/aspire/blob/fecfe0ac15c24de0d569714e64d255efd9a42332/tests/Aspire.RabbitMQ.Client.Tests/RabbitMQContainerFixture.cs#L34-L38